Stocks cut gains on Tuesday, with the S&P 500 and Nasdaq turning negative as technology and retail shares weighed.

The Dow Jones industrial average <.DJI> added 20.93 points, or 0.20 percent, to 10,646.76. The Standard & Poor's 500 Index <.SPX> dipped 0.11 points, or 0.01 percent, to 1,136.83. The Nasdaq Composite Index <.IXIC> fell 15.29 points, or 0.65 percent, to 2,338.94.

(Reporting by Leah Schnurr; editing by Jeffrey Benkoe)