President Obama zinged CNN, Fox News and MSNBC among others at the White House Correspondents' Dinner on Saturday, and praised the Boston Globe's coverage in the wake of the Boston Marathon bombings.

Journalists and celebrities gathered in D.C. for the annual event, where the president takes the stage to roast the White House press corps.

"I know CNN has taken some knocks lately, but the fact is I admire their commitment to cover all sides of the story just in case one of them happens to be accurate," Obama joked on Saturday.

He also took aim at MSNBC, noting, "Now David Axelrod works for MSNBC, which is a nice change of pace, since MSNBC used to work for David Axelrod."

Later on, Obama's remarks turned more serious as he remembered the bombings at the Boston Marathon. He praised the Boston Globe for its coverage of the tragedy, saying, "If anyone wonders if newspapers are a thing of the past, all you need to do is pick up or log on to papers like the Boston Globe."

He also gave a shoutout to NBC News' Pete Williams, who drew accolades for his reporting during the bombings. People in the newsroom refer to him as "Big Papi," Obama joked.

Earlier, Obama zinged NBC News, saying that he played basketball after this year's Easter Egg roll. He said he made "2 hits, 20 misses. The executives at NBC asked, 'What's your secret?'"

He speculated that the History Channel was not at the dinner because they were "embarrassed" for comparing him to Satan in "The Bible." "Of course, that never kept Fox News from showing up," Obama joked.

The president's first target after walking out on stage to rap music was none other than Rush Limbaugh, who he joked "warned you about this — second term, baby. We're changing things around here a little bit." BuzzFeed also got a mention when Obama cracked, "I remember when BuzzFeed was just something I did in college around 2am."

Related on HuffPost:

Loading Slideshow...
  • Claire Danes in Prada

  • Amy Poehler in Basler

  • Katy Perry in Giambattista Valli

  • Kerry Washington in Wes Gordon

  • Sharon Stone

  • Jessica Paré in Antonio Berardi

  • Olivia Munn in Marchesa

  • Kate Mara in Prada

  • Michelle Dockery in Elie Saab

  • Anna Wintour

  • Julia Louis-Dreyfus in Dolce & Gabbana

  • Julie Bowen in Monique Lhuillier

  • Hayden Panettiere in Katharine Kidd

  • Rebel Wilson

  • Sofia Vergara

  • Sophia Bush in Lela Rose

  • Elizabeth Banks in Roland Mouret

  • Connie Britton in Temperley

  • Shonda Rhimes & Kerry Washington

  • Kate Walsh in Carolina Herrera

  • Chrissy Teigen in Kaufman Franco & John Legend

  • Rebel Wilson in Theia & Gabby Douglas in David Meister

  • Carol Alt

  • Irina Shayk

  • Emily Mortimer in Oscar de la Renta

  • Arianna Huffington

  • Natalie Dormer in Marios Schwab

  • Hugh Dancy, Claire Danes and Bob Schieffer

  • Piers Morgan & Gerard Butler

  • Joanna Coles & Natalie Dormer

  • Kevin McHale in Topman

  • Psy

  • Chrissy Teigen in KaufmanFranco

  • Gayle King

  • Tracy Pollan & Michael J. Fox

  • Robin Wright in Rolando Santana

  • Darren Criss

  • Juju Chen

  • Charles Esten

  • Megan Hilty in Badgley Mischka

  • Patricia Arquette

  • Megan Wollover & Tracy Morgan

  • George Stephanopoulos & Alexandra Wentworth

  • Aasif Mandvi & John Oliver

  • Beth Behrs

  • Kimberly Guilfoyle

  • Korie & Willie Robertson

  • John Legend

  • Elaina Watley & Victor Cruz

  • Constance Zimmer

  • Morena Baccarin