Sunday, 06 September 2026
Advertisement Advertise Your advert could be here Reach thousands of learners and ICT professionals across Rwanda. Contact us
Advertisement Opportunity Jobs, scholarships & hackathons Fresh openings from Rwandan job boards are pulled in every hour. See openings

Headings, paragraphs and text formatting

Web foundations: HTML & CSS · lesson 3 of 11

In this lesson: Use headings in a correct hierarchy and mark up text meaningfully.

Headings

HTML gives you six heading levels, <h1> through <h6>. They are not font sizes — they are an outline, like chapter and section numbers in a book.

<h1>Learning web development</h1>
  <h2>HTML</h2>
    <h3>Tags</h3>
    <h3>Attributes</h3>
  <h2>CSS</h2>
Rules that matter: use one <h1> per page, and never skip a level to get a smaller size — use CSS for size. Screen-reader users navigate a page by jumping between headings, so a broken outline makes your site genuinely hard to use.

Paragraphs

Wrap every block of prose in <p>. Do not use <br> to fake paragraph spacing — that is a line break inside one paragraph, not a new one.

<p>Yanjye offers free ICT courses.</p>
<p>Every course ends with a certificate.</p>

Marking up meaning, not looks

Several elements look similar but say different things:

<strong>Important</strong>   <!-- carries weight/urgency -->
<b>Bold</b>                  <!-- just visually bold -->
<em>Emphasised</em>          <!-- stress when read aloud -->
<i>Italic</i>                <!-- just visually italic -->

Prefer <strong> and <em>. They mean something to screen readers; <b> and <i> only change appearance.

Other useful text elements

<blockquote>A longer quotation.</blockquote>
<code>inline code</code>
<pre>preformatted text, spacing preserved</pre>
<small>fine print</small>
<time datetime="2026-09-05">5 September 2026</time>

Entities

Some characters are part of HTML itself, so you must escape them:

  • &lt; gives <
  • &gt; gives >
  • &amp; gives &
  • &nbsp; gives a space that never breaks across lines
Create a free account to save progress

All lessons in this track

  1. 1
  2. 2
  3. 3
  4. 4
    Links and images ~20 min account needed
  5. 5
    Lists and tables ~20 min account needed
  6. 6
    Forms and input types ~30 min account needed
  7. 7
    Introduction to CSS ~15 min account needed
  8. 8
    Selectors: how to target elements ~25 min account needed
  9. 9
  10. 10
    Flexbox layout ~30 min account needed
  11. 11
    Responsive design and media queries ~30 min account needed
Advertisement Yanjye Learn a new digital skill this week ICT, programming and professional courses with graded weekly assignments. Start free