U.S. stocks closed slightly higher Tuesday as investors followed talks between Greece and its creditors. The gains came a day after U.S. markets had their biggest plunge of the year following the collapse of talks between the Mediterranean nation and its lenders.

U.S. stocks closed slightly higher Tuesday as investors followed talks between Greece and its creditors. The gains came a day after U.S. markets had their biggest plunge of the year following the collapse of talks between the Mediterranean nation and its lenders.

For the day:

The Dow Jones industrial average rose 23.16 points, or 0.1 percent, to 17,619.51.

The Standard & Poor's 500 index climbed 5.47 points, or 0.1 percent, to 2,063.11.

The Nasdaq composite gained 28.40 points, or 0.6 percent, to 4,986.87.

For the week:

The Dow is down 327.17 points, or 1.8 percent.

The S&P 500 index is down 38.38 points, or 1.8 percent.

The Nasdaq is down 93.64 points, or 1.8 percent.

For the year:

The Dow is down 203.56 points, or 1.1 percent.

The S&P 500 index is up 4.21 points, or 0.2 percent.

The Nasdaq is up 250.81 points, or 5.3 percent.