By continuing to use this site you consent to the use of cookies on your device as described in our
Cookie Policy unless you have disabled them. You can change your Cookie Settings at any time but parts of our site will not function correctly without them.

(Reuters) - U.S. stocks edged higher on Tuesday, with help from Twitter and media stocks, as investors looked past a historic U.S.-North Korea summit and focused on the Federal Reserve's policy meeting.

President Donald Trump and North Korean leader Kim Jong Un pledged to work towards complete denuclearization of the Korean peninsula, but their joint statement gave few details on how the goal would be achieved.

The Nasdaq Composite was up 45.33 points, or 0.59 percent, at 7,705.26, after hitting an intraday record high.

Twitter surged 6.8 percent and was the biggest gainer on the S&P 500, after J.P. Morgan raised its price target on the stock by $11 to $50, saying it was confident about the company's advertising revenue growth.

A court ruling that would decide the fate of AT&T's Inc $85 billion offer for Time Warner is awaited after the closing bell.

Tesla rose 6.8 percent after Keybanc raised its estimates for Model 3 deliveries for the second quarter and the full year.

The Fed is widely expected to raise interest rates for the second time this year, when it concludes its policy meeting on Wednesday.

With borrowing costs returning to more normal levels, investors are focused on how the Fed characterizes its monetary policy, while looking for hints if it would move to raise rates three or four times this year.

Data on Tuesday showed U.S. consumer prices rose marginally in May as gasoline price increases slowed and the underlying trend continued to suggest moderate inflation in the economy.

"The macro environment remains in a Goldilocks-like zone, technical trendlines are improving and performance is becoming more broad-based, and that typically presents a favorable backdrop for stocks to trend higher," Sandven said.

Advancing issues outnumbered decliners for a 1.23-to-1 ratio on the NYSE and for a 1.43-to-1 ratio on the Nasdaq.

The S&P index recorded 38 new 52-week highs and two new lows, while the Nasdaq recorded 132 new highs and 21 new lows.