Tech stocks drive stock market higher

The major U.S. stock market indexes posted gains Tuesday, boosted by the tech sector and erasing earlier losses.

The Dow Jones Industrial Average rose 113.99 points, or 0.44 percent, to 25,971.06. The S&P 500 climbed 10.76 points, closing at 2,887.89. The Nasdaq Composite was up 48.31 points, or 0.61 percent, at 7,972.47.

Tuesday’s afternoon advance was propelled by gains in Apple and Microsoft.

Ticker Security Last Change Change %
AAPL APPLE INC. 166.82 +0.98 +0.59%
MSFT MICROSOFT CORP. 407.06 +6.09 +1.52%

Meanwhile, earlier pressure came following headlines that China will ask the World Trade Organization next week for permission to impose sanctions on the United States.

Ticker Security Last Change Change %
I:DJI DOW JONES AVERAGES 38503.69 +263.71 +0.69%
SP500 S&P 500 5070.55 +59.95 +1.20%
I:COMP NASDAQ COMPOSITE INDEX 15696.639958 +245.33 +1.59%

It is also the 17th anniversary of the 9/11 terror attacks.

Shares of airlines, home improvement centers and insurance companies were active as Hurricane Florence remains on track to make landfall near the Carolina coast later this week.

Commodities were mixed but oil was higher as Hurricane Florence moved toward the U.S. East Coast.

FOX Business' Ken Martin contributed to this article.