Investors welcomed the latest signals from the Federal Reserve on interest rates, sending U.S. stocks higher in afternoon trading Wednesday. In her semiannual report to Congress, Fed Chair Janet Yellen said the central bank would likely move more slowly to raise interest rates if the economy disappoints. Health care and technology stocks were among the biggest gainers, helping set the market up for its first gain after three days of losses.

KEEPING SCORE: The Dow Jones industrial average rose 20 points, or 0.1 percent, to 16,035 as of 1:25 p.m. Wednesday on Wall Street. The Standard & Poor’s 500 gained 16 points, or 0.9 percent, to 1,868. The Nasdaq composite added 68 points, or 1.6 percent, to 4,336. Stocks are coming off a three-day losing streak.

THE FED SPEAKS: Yellen offered no major surprises in prepared remarks released before the start of her two-day Congressional testimony. She reiterated the Fed’s confidence that the U.S. economy was on track for stronger growth and a rebound in inflation. At the same time, she acknowledged the weaker economic data reported since the start of the year and made it clear the Fed is closely monitoring greater risks from abroad. Since the Fed decided to raise its key interest rate from a record low in December, the U.S. economy has hit some turbulence and markets have become volatile.

THE QUOTE: The message from the Fed is what investors wanted to hear, said Erik Davidson, chief investment officer for Wells Fargo Private Bank.

“The markets have gotten the message that the Fed is not on autopilot,” Davidson said. “If they’d gotten the sense that the Fed was on autopilot and was predestined to a certain number of rate hikes in 2016, that would have been troublesome.”

SECTOR VIEW: Eight of the 10 sectors in the S&P 500 index moved higher, led by health care stocks. Technology and financials also got a healthy bump. Utilities stocks were the biggest decliners.

BIG GAINER: Akamai Technologies surged 22.2 percent, the biggest gainer in the S&P 500 index. The stock added $8.78 to $48.35.

advertisement | advertise on newsday

THEY SAID YES: Staples rose 2.1 percent after the retailer received European approval for its buyout of rival Office Depot. In exchange for the approval, Staples said it would split off some operations in Europe to allay regulatory concerns. The $6.3 billion deal still needs approval in Canada and in the U.S. Staples added 17 cents to $8.57.

MEDIA MESS: Several big media companies slumped. Disney dropped 4.5 percent a day after it reported that its ESPN network has hit a soft patch. The stock slid $4.20 to $88.12. Time Warner recovered somewhat from an early slide. By midday it was down 0.4 percent after its revenue fell short of forecasts. Time Warner shed 27 cents to $62.94.

OVERSEAS: In Europe, Germany’s DAX added 1.6 percent, while France’s CAC 40 rose 1.6 percent. Britain’s FTSE 100 gained 0.7 percent. In Asia, Japan’s Nikkei 225 sank 2.3 percent and is down about 11 percent in the past month. Australia’s S&P/ASX 200 shed 1.2 percent. Markets were closed in China, Taiwan, Hong Kong and South Korea for Lunar New Year holidays. Hong Kong and Korea reopen on Thursday and China and Taiwan resume trading on Monday.

ENERGY: Benchmark U.S. crude oil was down 35 cents at $27.59 a barrel in New York. Brent crude, a benchmark for international oils, rose 66 cents to $30.98 a barrel in London.

BONDS AND CURRENCIES: Bond prices were little changed. The yield on the 10-year Treasury held steady at 1.73 percent. The dollar fell to 113.83 yen from 114.95 yen, while the euro fell to $1.1231 from $1.1289 the day before.