By Benjamin Pimentel, MarketWatch

SAN FRANCISCO (MarketWatch) -- Facebook Inc. marked its 10th anniversary on an upbeat note, as its stock led a tech-sector rally.

Facebook (FB) was up 2.2% to $62.82 a week after the company blew past Wall Street estimates and its results underscored a strengthening position in the online ad market. Facebook shares have risen 15% year-to-date.

In a statement marking the anniversary, co-founder and Chief Executive Mark Zuckerberg said: "It's been an incredible journey so far, and I'm so grateful to be a part of it."

"It's been amazing to see how people have used Facebook to build a real community and help each other in so many ways," he added. "In the next decade, we have the opportunity and responsibility to connect everyone and to keep serving the community as best we can."

The tech sector also got a lift from Microsoft (MSFT) , shares of which were up a fraction after the tech giant named Satya Nadella as its new CEO.

Gains also came from other Internet stocks, as shares of Google Inc. (GOOG) gained 1.5% and Yahoo Inc. (YHOO) rallied 2.5%. Apple (AAPL) was up 1.5%, while Hewlett-Packard (HPQ) added 1% and Zynga (ZNGA) was up 4%.

On the downside, shares of Twitter (TWTR) were down a fraction ahead of its first quarterly report as a publicly-traded company. Twitter will report financials after the market closes on Wednesday. Shares of LinkedIn were off 1.7%. LinkedIn reports on Thursday.

Other tech stories from MarketWatch:

What Facebook will look like in 10 years

Will Bill Gates pull a Steve Jobs at Microsoft?

Microsoft's safe choice could surprise investors

Subscribe to WSJ: http://online.wsj.com?mod=djnwires

HP (NYSE:HPQ)
Historical Stock Chart
Von Jun 2024 bis Jul 2024 Click Here for more HP Charts.
HP (NYSE:HPQ)
Historical Stock Chart
Von Jul 2023 bis Jul 2024 Click Here for more HP Charts.