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.

TickerSecurityLastChangeChange %
AAPLAPPLE, INC.121.42+1.29+1.07%
MSFTMICROSOFT CORP.231.60+4.87+2.15%

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.

TickerSecurityLastChangeChange %
I:DJIDOW JONES AVERAGES31496.3+572.16+1.85%
SP500S&P 5003841.94+73.47+1.95%
I:COMPNASDAQ COMPOSITE INDEX12920.147675+196.68+1.55%

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.