Major indexes closed mostly higher on Wall Street, thanks largely to gains in a handful of Big Tech companies.

S&P 500 was nearly unchanged. Small-company stocks continued to outpace the rest of the market, while investors’ attention turned to huge gains in a new batch of “meme” stocks favored by online investors, including Wendy’s and Clover Health.

On Tuesday:

The S&P 500 rose 0.74, or less than 0.1%, to 4,227.26.

The Dow Jones Industrial Average fell 30.42 points, or 0.1%, to 34,599.82.

The Nasdaq rose 43.19 points, or 0.3%, to 13,924.91.

The Russell 2000 index of smaller companies rose 24.58 points, or 1.1%, to 2,343.76.

For the week:

The S&P 500 is down 2.63 points, or 0.1%.

The Dow is down 156.57 points, or 0.5%.

The Nasdaq is up 110.42 points, or 0.8%.

The Russell 2000 is up 57.35 points, or 2.5%.

For the year:

The S&P 500 is up 471.19 points, or 12.5%.

The Dow is up 3,993.34 points, or 13%.

The Nasdaq is up 1,036.63 points, or 8%.

The Russell 2000 is up 368.90 points, or 18.7%.