By Victor Reklaitis and Wallace Witkowski, MarketWatch

SAN FRANCISCO (MarketWatch) -- U.S. stocks advanced Tuesday after a better-than-expected jump in July housing starts and upbeat earnings reports, and Apple Inc. shares flirted with all-time, post-split highs.

Home Depot Inc. (HD) was the biggest gainer in the Dow Jones Industrial Average after the retailer's quarterly results topped forecasts, and Apple (AAPL) moved up to levels last seen in September 2012.

The S&P 500 (SPX) climbed 9 points, or 0.5%, to 1,981, while the Dow industrials(DJI) rose 78 points, or 0.5%, to 16,917. The S&P 500 is nearing its July 24 record close of 1,987.98.

The Nasdaq Composite (RIXF) advanced 14 points, or 0.3%, to 4,522 after the tech-laden index on Monday scored its highest close since March 31, 2000.

The Commerce Department on Tuesday said construction on U.S. new homes rose 15.7% in July to an annual rate of 1.09 million versus 973,000 in June. Economists surveyed by MarketWatch had penciled in July starts of 975,000. The decline in new construction in June also was revised to a much smaller drop.

"I think investors will be encouraged to an extent by the revisions in the data," said Andrew Wilkinson, chief market analyst at Interactive Brokers. He also said geopolitical concerns seem to be receding, even though there's no resolution in the Ukraine-Russia conflict, and that "just gives added impetus to the bulls."

In other economic news, the Labor Department said U.S. consumer prices rose 0.1% in July, matching forecasts.

Wouter Sturkenboom, strategist at Russell Investments in London, said he is modestly positive on markets. "Yesterday was probably a reaction to the unwarranted volatility on Friday, but the rest of the week is going to be about the FOMC (Federal Open Market Committee) minutes and Jackson Hole conference," he said in emailed comments.

Also Tuesday's Need to Know: Why Nasdaq's revisit of March 2000 is the saddest party ever

"On both counts, we and the market expect the prevailing dovish stance to hold, providing upside momentum for markets," Sturkenboom added, but said owing to valuation concerns, his firm remains neutral on U.S. stocks. Valuation worries have been a persistent theme among some market observers, with Yale Professor Robert Shiller weighing in over the weekend.

This week will see the release of the Fed minutes, due Wednesday, and a speech from Federal Reserve Chairwoman Janet Yellen in Jackson Hole, Wyo., on Friday.

Home Depot, Apple among stocks to watch

Home Depot shares rose 6% to $88.60, and home-builder shares staged a rally with D.R Horton Inc. (DHI) , Ryland Group Inc.(RYL) , and Lennar Corp. (LEN) shares all advancing about 3%.

Shares of Medtronic Inc.(MDT) rose 0.3% after the medical devices maker's profit also topped expectations. (Read more on the day's notable movers here: http://www.marketwatch.com/story/home-depot-dicks-sporting-goods-medtronic-report-earnings-tuesday-2014-08-19.)

Apple shares rose 1.3% to $100.48. On a post split basis, the stock notched a record close of $100.30 on Sept. 19, 2012, and a record intraday high of $100.72 on Sept. 21, 2012. The tech giant executed a 7-for-1 stock split in June.

In overseas markets, Japanese stocks rose for a seventh day, boosted by Wall Street gains from Monday. European stocks pushed higher, helped by a leap by Danish shipping and oil conglomerate A.P. Møller-Maersk AS . Oil (CLU4) and gold (GCZ4) dipped.

Subscribe to WSJ: http://online.wsj.com?mod=djnwires