The major U.S. stock indexes closed mostly lower Wednesday, pulled down by a steep drop in technology companies.

The slide erased some of the gains from the previous day. It also offset solid gains among banks and health care companies. Bond yields rose following a strong report on third-quarter economic growth in the U.S.

On Wednesday:

The Standard & Poor's 500 index slid 0.97 points, or 0.04 percent, to 2,626.07.

The Dow Jones industrial average gained 103.97 points, or 0.4 percent, to 23,940.68.

The Nasdaq composite lost 87.97 points, or 1.3 percent, to 6,824.39.

The Russell 2000 index of smaller-company stocks picked up 5.86 points, or 0.4 percent, to 1,542.30.

For the week:

The S&P 500 rose 23.65 points, or 0.9 percent.

The Dow added 382.69 points, or 1.6 percent.

The Nasdaq fell 64.77 points, or 0.9 percent.

The Russell 2000 gained 23.13 points, or 1.5 percent.

For the year:

The S&P 500 is up 387.24 points, or 17.3 percent.

The Dow is up 4,178.08 points, or 21.1 percent.

The Nasdaq is up 1,441.27 points, or 26.8 percent.

The Russell 2000 is up 185.17 points, or 13.6 percent.