Line Height Specification

How Best to set Line Height

  • You want text on your website to be double-spaced by default. Which of the following line-height values is the best way to achieve this?
  • 200%
  • 2em
  • 2
  • double

The correct answer is 2

Always specify line-height as a unitless number

The descendent(child) elements that specify a different font-size will inherit that number rather than a fixed line height

This ia a expample

If there is a page has a default font-size set as 12pt and a heading of 24pt,if you set line-height to 2em or 200%,then you will get the line-height of 24pt(double the default body's font-size)