May 25, 2022

In this section of the course, lets talk about typography. This includes headings and paragraphs. The code snippet below indicates the needed code for both elements.

See the Pen Untitled by bmutebi (@bmutebi) on CodePen.


Headings are written using the h tag. There are six levels of headings i.e. <h1> to <h6> with h1 being the biggest heading followed by <h2> up to <h6> as shown in the snippet above. It entirely depends on what you what to do or how you want your website to look like. The content of what headings should be between the opening and closing tag of this element.


Paragraphs are written using a p tag in HTML. Just like headings, they should have an opening and a closing tag as indicated in the above snippet—<p> … </p>. The paragraph content should as well be wrapped inside these tags.