vibecodai logovibecodai
← All HTML lessons

HTML · Lesson 2 · 10 min

Headings & Text

Use h1–h6 for titles and p for paragraphs.

You will learn

  • Pick the right heading level
  • Write clear paragraph text
  • Use strong and em for emphasis

<h1> is the main title — use only one per page. <h2> and <h3> break content into sections, like chapters in a book.

Emphasis

<strong> makes text bold. <em> makes text italic. Both help readers scan your page.

Edit HTML — live preview below

HTML
Live preview

Tip: Add an h3 subsection under one of the h2 headings.