U.S. stocks shook off an early stumble and climbed Thursday, led by gains in technology companies as Apple reached $1 trillion in value. Consumer products and health care companies rose as second-quarter results from corporate America continued to surpass investors’ expectations.

That helped investors shake off some earlier worries. Overseas markets fell after the White House said it will consider even higher tariffs on Chinese imports, escalating the trade conflict between the world’s two biggest economic powers.

KEEPING SCORE: The S&P 500 index rose 14 points, or 0.5 percent, to 2,827 at closing time. The Dow Jones Industrial Average slipped 8 points, or 0.03 percent, to 25,326. The Nasdaq composite jumped 95 points, or 1.2 percent, to 7,803. The Russell 2000 index of smaller-company stocks added 10 points, or 0.6 percent, to 1,679.

TRILLION DOLLAR TITAN: Apple’s market value reached $1 trillion shortly before noon and continued to climb. It is the first publicly traded company to hit that milestone.

The stock rose 3.1 percent to $207.74. The stock jumped 5.9 percent Wednesday after Apple announced strong quarterly revenue and higher iPhone sales prices and gave a solid forecast for the current period. In the last two days Apple has added about $83 billion in market value, more than heavy equipment maker Caterpillar is worth.

Saudi Arabia’s state-owned oil company, known as Saudi Aramco, has taken steps to prepare for an initial public offering, and Saudi officials say the IPO will value the company at around $2 trillion. But it’s not clear when that offering might happen and without it, it’s difficult to value the company.

THE QUOTE: Despite its eye-popping capitalization, by some measurements Apple stock isn’t very expensive. The stock is now trading at 17.8 times its expected earnings over the next year. That’s about the same as the rest of the S&P 500, and Apple has bigger profit margins.

GBH Insights analyst Daniel Ives said milestone reflects Apple’s unique position as a technology company that sells numerous products that work together and which people stick with.

“Once you buy one Apple device in a household, likely you’re going to buy multiple, three, four, five devices,” he said. “They’ve built a consumer product empire.”

JUICED UP: Tesla soared 15.1 percent to $346.39. The electric car maker said production of its lower-cost Model 3 sedan is growing and CEO Elon Musk said the company doesn’t expect to need to raise more money from investors.

EARNINGS POWER: Consumer products maker Clorox rallied 5.2 percent to $141.20 after its fiscal fourth-quarter profit and its forecast for the current year were both better than analysts expected. That helped other companies that make household goods. Procter & Gamble gained 1.5 percent to $81.89.

Animal health company Zoetis jumped 5.8 percent to $90.97 and drugmaker Regeneron added 7.2 percent to $397.87.

As of Wednesday, more than 300 companies in the S&P 500 have reported their quarterly results. S&P Global Markets Intelligence says 82 percent of those companies have announced larger profits than analysts expected. Total S&P 500 earnings are expected to grow 24 percent from last year.

TRADE TALK: The Trump administration said it might put a 25 percent tax on $200 billion in imports from China. That is up from a 10 percent tax it proposed in June. The tariffs likely wouldn’t go into effect until at least September, as the government will hold a hearing about the proposal later in August and will seek public comment until Sept. 5.

TRIPPED UP: TripAdvisor sank 12.5 percent to $50.44 as the travel booking site reported weaker sales than analysts expected and said revenue from hotels decreased.

SNAKE EYES: Wynn Resorts reported profit and sales that missed estimates following a decrease in income from its Macau operation. The stock dropped 7.2 percent to $148.46. That comes a day after Caesars Entertainment said it expects weak results in the current quarter because of fewer scheduled events and lower room rates in Las Vegas.

BONDS: Bond prices edged higher. The yield on the 10-year Treasury note fell to 2.98 percent from 3 percent.

OVERSEAS: The DAX index in export-reliant Germany tumbled 1.5 percent and the CAC 40 in France lost 0.7 percent. Britain’s FTSE 100 slid 1 percent after the Bank of England raised its main interest rate.

Japan’s Nikkei 225 index sank 1 percent and Hong Kong’s Hang Seng dropped 2.2 percent. The Kospi in South Korea shed 1.6 percent.

CENTRAL BANKS: The Bank of England raised its key rate, as expected, but said it would be cautious about further increases as Britain prepares to leave the European Union. The bank’s main interest rate is the highest it’s been since 2009, during the global financial crisis.

ENERGY: Benchmark U.S. crude rose 1.9 percent to $68.96 a barrel in New York. Brent crude, used to price international oils, gained 1.5 percent to $73.45 a barrel in London.

Wholesale gasoline rose 1.1 percent to $2.07 a gallon. Heating oil picked up 1.6 percent to $2.13 a gallon. Natural gas climbed 2.1 percent to $2.82 per 1,000 cubic feet.

METALS: Gold lost 0.6 percent to $1,220.10 an ounce. Silver fell 0.4 percent to $15.39 an ounce. Copper dipped 0.4 percent to $2.74 a pound.

CURRENCIES: The dollar rose to 111.69 yen from 111.56 yen. The euro slipped to $1.1587 from $1.1664.

© The Associated Press. All rights reserved.