Skip to content
FORGENO ADS GAMESUnlock all $8

HTML · Unit 1: Your first web page · Lesson 3 of 5

Strong and emphasis

<strong> marks words that are important, serious or urgent.

Opens this lesson in Code Academy. Lessons open one after another, and each unit opens when you pass the checkpoint quiz before it (you can take a checkpoint early to skip ahead). If this lesson is not open yet, the button shows you its unit on your map.

The idea

<strong> marks words that are important, serious or urgent. Browsers show them in bold.

<em> marks stress, the way your voice leans on a word. Browsers show it in italics.

Elements can sit inside other elements. Close the inner one first: <p>Do <strong>not</strong> touch.</p>

Worked example

HTML

<p>The oven is <strong>very hot</strong>.</p>
<p>I <em>really</em> mean it.</p>

Screen readers can change their voice for these elements, which bold or italic styling alone cannot do.

Key terms

Strong and em
<strong> marks important words; <em> marks spoken stress.
Nesting
Putting elements inside other elements. Close the most recently opened element first.

Practise it in Code Academy

It has 4 exercises (multiple choice, fill in the blank, fix the broken code and write code from a prompt) and takes about 5 minutes. Every answer is checked as you go, and feedback names the exact mistake. Hints and the solution are there if you get stuck.

Every lesson is free: no ads, no lives and no paywall.