Document foundations · Lesson 4 of 16
Headings, paragraphs and formatting
From h1 to h6, plus bold and italic.
6 minutes3 games
There are 6 heading levels: <h1> is the biggest and most important, <h6> the smallest. Use one <h1> per page as its main title. Paragraphs are <p>, and a line break inside one is <br> (it has no closing tag).
HTML
<h1>Recipes</h1> <h2>Koshari</h2> <p>Rice, lentils and pasta,<br>topped with tomato sauce.</p> <p>This is <strong>important</strong>, this is <em>emphasised</em>, and this is <mark>highlighted</mark>.</p>
Complete the code
Complete: a main heading with a subheading under it.
<>SeaCode</h1> <h2>Learn to code</>
Order the lines
Order the page: the heading, then a paragraph with an important word.
- Click the lines in the right order
Exercise
Make an h1 with your name and a p under it with at least one strong word.
HTML
<!-- اكتب هنا -->
Learn more from
Played 0 of 3 games
Sign in to save your progress and earn XP.