Styling the h1 to h6 Heading Tags

Worried about licensing?

Do you have right license for your templates and fonts?

Head over to our partner Envato Elements and unlock unlimited downloads of over 50 million digital assets with full commercial licensing.

  • 50+ Million Assets with Unlimited Downloads
  • Templates, Addons, Fonts, Footage, Photos, Brushes, Presets & More
  • Full Commercial licensing for client work

Get ultimate peace of mind!

Get Started Now
Image: Styling the h1 to h6 Heading Tags GIF

If you want to add some visual style to you heading tags you might enjoy this snippet in pure css where each heading from h1 to h6 has a progressively lighter background and smaller font size.

If you are having trouble with the pen, try the archived copy on GitHub

Heading Tag Style

See the Pen KRojGB by Saijo George (@SaijoGeorge) on CodePen.

Posted by:Saijo George

Digital Marketer with a strong focus on technical SEO and design. One of the top 100 makers on Producthunt, co-organizer of the SEO Meetup in Melbourne, an instructor at General Assembly. Worked with brands like Envato, AEON. Currently the SEO Strategy Director at Supple.