NEW YORK—The Dow and S&P 500 rose on Tuesday as stronger-than-expected results and outlooks from Walmart and Home Depot bolstered views on the health of consumers, while technology shares declined and weighed on the Nasdaq.
The S&P 500 consumer discretionary and staples sectors gave the benchmark index its biggest lift, while the S&P 500 retail index rose 1.9 percent.