Boosted by a rally in the tech sector, all three major averages rose to fresh closing highs on Thursday.

The S&P 500 and Nasdaq Composite rose to fresh intraday and closing records on Tuesday.

U.S. Stock markets in much of the rest of the world pulled back from their gains the day before, as fighting continued in the region and the U.S. military.