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

Semantic text, figures and search engine optimisation

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

Semantic elements also describe the meaning of words and phrases, group self-contained figures, and help search engines rank a page (spec 11.1.4 to 11.1.6).

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

Practise this lesson

Semantic markup for text (11.1.5)

MeaningElementExample
Importancestrong`<strong>Do not run near the pool.</strong>`
Emphasis (stress)em`I <em>did</em> book the lesson.`
Quotationsq (inline, adds quote marks) and blockquote (a longer quotation, with cite for the source URL)`<blockquote cite="https://example.com/review">...</blockquote>`
Abbreviations and acronymsabbr with title giving the full form`<abbr title="World Wide Web Consortium">W3C</abbr>`
Citationscite: the title of a creative work`<cite>The Guide to Swimming</cite>`
Definitionsdfn: the term being defined`<dfn>Breaststroke</dfn> is a swimming stroke...`
Addressesaddress: contact information for the author or owner`<address>1 River Road, Leeds</address>`
Marksmark: text highlighted for relevance, such as search terms`Results for <mark>yoga</mark>`

Screen readers can announce these meanings; b, i and u only change the look

Self-contained content (11.1.6)

<figure>
  <img src="images/pool-plan.png" alt="Plan of the pool showing six lanes and a shallow end">
  <figcaption>Figure 1: The new 25 metre pool</figcaption>
</figure>

<figure> groups self-contained content (an image, diagram, code listing or chart) that is referred to from the main text and could be moved elsewhere. <figcaption> gives its caption, linking the caption to the content for assistive technology.

Semantic code and SEO (11.1.4)

Search engine optimisation (SEO) is improving a page so it ranks higher in search results. Semantic HTML helps because search engine crawlers use the structure to work out what the page is about and which content matters:

Keyword stuffing (repeating words unnaturally) is penalised.

Worked example

Mark up this sentence semantically: 'The W3C says accessibility is essential.' W3C should show its full name (World Wide Web Consortium) and 'essential' is stressed.

  1. An abbreviation: abbr with a title.
  2. Stress emphasis that changes the meaning: em.

Answer: ```html <p>The <abbr title="World Wide Web Consortium">W3C</abbr> says accessibility is <em>essential</em>.</p> ```

Key idea: strong = importance, em = emphasis, q and blockquote = quotations, abbr = abbreviations, cite = titles of works, dfn = definitions, address = contact details, mark = highlighted text; figure and figcaption group self-contained content. Semantic structure, titles, headings and alt text help SEO.

Check yourself

  1. Which element shows the full form of an abbreviation when the user points at it?
    • `<dfn title="...">`
    • `<cite title="...">`
    • `<mark title="...">`
    • `<abbr title="...">`
    Show answer

    `<abbr title="...">`. abbr with a title attribute gives the expansion.

  2. Which element highlights search terms within results?
    • `<strong>`
    • `<mark>`
    • `<em>`
    • `<q>`
    Show answer

    `<mark>`. mark represents text highlighted for its relevance.

  3. Which element gives a caption to a figure? Type the element name.
    Show answer

    figcaption. figcaption goes inside figure.

  4. Explain how using semantic HTML can improve a page's search engine ranking.
    Show answer

    Search engine crawlers use the semantic structure, such as headings, main and article, to understand what the page is about and which content is important, so it can be ranked for relevant searches.. Semantic elements tell crawlers the page's structure and main content, helping them judge relevance and rank it.

  5. What is the difference between em and i?
    • em is bold and i is italic
    • i is newer than em
    • em gives stress emphasis that screen readers can convey; i only changes the appearance
    • em is only for headings
    Show answer

    em gives stress emphasis that screen readers can convey; i only changes the appearance. em has meaning; i is presentational (or for alternative voice such as foreign words).

  6. Which element should contain the contact details of a site's owner?
    • `<address>`
    • `<cite>`
    • `<footer-info>`
    • `<contact>`
    Show answer

    `<address>`. address is for contact information. contact and footer-info are not HTML elements.

  7. Which content is most suitable for a figure element?
    • The site's main navigation
    • A single word that needs highlighting
    • A diagram referred to in the text, with a caption
    • The page's copyright notice
    Show answer

    A diagram referred to in the text, with a caption. figure is self-contained content such as an image, diagram or code listing with a caption.

Practise with instant feedback

Sources

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