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. 239.59 +2.26 +0.95%
MSFT MICROSOFT CORP. 430.98 +7.52 +1.78%

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 44782 -128.65 -0.29%
SP500 S&P 500 6047.15 +14.77 +0.24%
I:COMP NASDAQ COMPOSITE INDEX 19403.947849 +185.78 +0.97%

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.