Skip to main content

HTML Text Formatting — exercises and bug fixes

5 hands-on exercises and 5 find-the-bug challenges for the HTML Text Formatting lesson. Every one is checked automatically in the browser — write the code, run it, and the tests tell you what still fails.

Exercises(5)

  1. 1

    Mark real importance

    easy10 min

    Use strong for a genuinely important word.

  2. 2

    Add stress emphasis

    easy10 min

    Use em to stress a word.

  3. 3

    Highlight a match

    easy10 min

    Use mark to highlight a search term.

  4. 4

    Add small print

    easy10 min

    Use small for a legal note.

  5. 5

    Show inserted and deleted text

    medium10 min

    Use del and ins to show an edit.

Find the bug(5)

  1. 1

    Fix bold used for importance

    easy8 min

    Use strong when the word genuinely matters.

  2. 2

    Fix italics used for emphasis

    easy8 min

    Stress emphasis belongs in em.

  3. 3

    Fix the span used for highlighting

    easy8 min

    A highlighted match should use mark.

  4. 4

    Fix the deprecated strike element

    easy8 min

    Removed text uses del.

  5. 5

    Fix the font element

    easy8 min

    The font element was removed from HTML.

Ready to write the code?

The editor, the automatic checks and the worked solutions open up with an account.

Open the workspace