All subjects · Information Technology · WIT12 3 hour practical exam on web development with HTML, CSS and JavaScript

Structuring text and lists

Edexcel IAL Information Technology · WIT12 3 hour practical exam on web development with HTML, CSS and JavaScript

Headings, paragraphs, breaks, emphasis and lists give text its structure (spec 7.2.3 and 7.2.4).

Practise this in the app: instant marking and a fix for every mistake. Free, no email needed to start.

Practise this lesson

Text structure and formatting (7.2.3)

Lists (7.2.4)

<ul>
  <li>Swimming</li>
  <li>Tennis</li>
</ul>
<ol start="3" type="A">
  <li>Warm up</li>
  <li>Main set</li>
</ol>
<dl>
  <dt>Lane</dt>
  <dd>A marked section of the pool for one swimmer.</dd>
</dl>

Nested lists

A nested list goes inside an li, not directly inside the ul:

<ul>
  <li>Racket sports
    <ul>
      <li>Tennis</li>
      <li>Badminton</li>
    </ul>
  </li>
  <li>Swimming</li>
</ul>

The browser indents the inner list and uses a different bullet style. Dropdown navigation menus are often built from nested lists.

Worked example

Write the HTML for a numbered list of three steps, Check in, Change and Swim, numbered with lower-case Roman numerals starting at ii.

  1. Numbered, so ol.
  2. Lower-case Roman numerals: type="i". Start at ii, which is the number 2: start="2".
  3. Each step is an li.

Answer: ```html <ol type="i" start="2"> <li>Check in</li> <li>Change</li> <li>Swim</li> </ol> ```

Key idea: Use headings in order, p for paragraphs, hr for a change of topic, em for stress, strong for importance. ul is unordered, ol is ordered (start, type, reversed), dl pairs dt terms with dd descriptions; nest a list inside an li.

Check yourself

  1. An ordered list has `<ol start="4" type="a">`. How is its first item labelled?
    • d
    • 4
    • a
    • D
    Show answer

    d. type="a" gives lower-case letters and start="4" begins at the fourth letter: d.

  2. Which element holds a term in a description (definition) list? Type the element name.
    Show answer

    dt. dt is the term and dd its description, inside dl.

  3. Where must a nested list be placed?
    • Inside an li element of the outer list
    • Directly inside the outer ul, between two li elements
    • After the closing tag of the outer list
    • Inside a dt element
    Show answer

    Inside an li element of the outer list. Only li elements may be direct children of ul or ol, so the inner list goes inside an li.

  4. Which element marks text as having strong importance?
    • `<em>`
    • `<b>`
    • `<i>`
    • `<strong>`
    Show answer

    `<strong>`. strong marks importance; em marks stress emphasis. b and i are only visual styles with no extra meaning.

  5. What does the hr element represent in HTML5?
    • A heading row in a table
    • A thematic break, such as a change of topic between paragraphs
    • A hyperlink reference
    • A line break inside an address
    Show answer

    A thematic break, such as a change of topic between paragraphs. hr is a thematic break; br is a line break.

  6. Why should headings be used in order (h1, then h2, then h3) rather than chosen for their size?
    Show answer

    Headings give the page a structure: screen reader users navigate by heading level, and search engines use them to understand the content.. Heading levels describe the structure, not the look (CSS controls size). Assistive technology and search engines rely on the hierarchy.

Practise with instant feedback

Sources

Last updated 8 November 2026. Spotted a mistake? Tell us.