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. 181.56 -0.75 -0.41%
MSFT MICROSOFT CORP. 402.79 -1.27 -0.31%

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 38563.8 -64.19 -0.17%
SP500 S&P 500 4975.51 -30.06 -0.60%
I:COMP NASDAQ COMPOSITE INDEX 15630.782894 -144.87 -0.92%

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.