Write less CSS by taking advantage of inheritence

Kevin Powell on YouTubeWatch on YouTube

SaveMark complete

Sign in to save videos and track what you’ve finished.

BeginnerUI16 min

About this video

A CSS tutorial explaining how inheritance lets you style text once on the html or body element and write less code. It covers overriding inherited properties, why links and form elements behave differently, and how to inspect inherited styles in dev tools.

What you’ll learn

  • Apply general typography styles to the html or body element
  • Override inherited CSS properties where needed
  • Inspect inherited and non-inherited styles in browser dev tools