HTML bootcamp · Lab 11

Bold and italic meaning

easyFormatting8 minLesson: Formatting

Read the question, write HTML on the right, then Preview or Check.

QuestionHint and solution stay closed until you open them

Write a paragraph that marks "Sold out" as important with <strong> and "today" as emphasised with <em>.

These tags carry meaning, not just looks: <strong> signals importance, <em> signals stress.

Output. A p containing a strong and an em.

Examples

Example 1
Expected
<p>The special is <strong>Sold out</strong> <em>today</em>.</p>
Hint
  1. <strong> for importance, <em> for emphasis.
  2. Both go inside the <p>.
Show correct code

Peek only after you have tried. You can still Check your own version.

<p>The special is <strong>Sold out</strong> <em>today</em>.</p>
index.htmlLive preview · Check reads the DOM
ResultIdle
Run to see output. Check grades the tests.