HTML Foundations

Lesson 2 of 6

Text Content: Headings, Paragraphs, and Lists

Most of a web page is text, and HTML gives you a small set of elements to describe what kind of text it is.

Headings and paragraphs

HTML

There are six heading levels, <h1> through <h6>, from most to least important. Use exactly one <h1> per page, it's the page's main title, and don't skip levels just to make text smaller, that's what CSS is for.

Lists

HTML
  • <ul> is an unordered list (bullets), use it when order doesn't matter.
  • <ol> is an ordered list (numbers), use it when sequence matters, like steps in a recipe.
  • Every item in either list goes inside an <li> (list item).

Inline emphasis

HTML

<strong> and <em> carry real semantic meaning (importance and emphasis) that screen readers announce differently, they're not just "bold" and "italic". The purely visual tags <b> and <i> still exist but should be reserved for cases with no semantic meaning at all.

📝 Text Content Quiz

Passing score: 70%
  1. 1.Which list type should you use for numbered, sequential steps?

  2. 2.A page should generally have more than one <h1> so search engines see multiple important topics.

  3. 3.Every item inside a <ul> or <ol> must be wrapped in an ____ element.