Dow and S&P 500 close at records as tech stocks surge

U.S. stocks closed higher on Monday as technology stocks recovered from a wobbly performance last week.