Lesson 3 of 15

Text Formatting

Text Formatting Tags

HTML provides several inline tags for formatting text within paragraphs:

TagPurposeRenders as
<strong>Important textbold
<em>Emphasized textitalic
<code>Inline codemonospace
<mark>Highlighted texthighlighted
<s>Strikethroughcrossed out

Example:

<p><strong>Important:</strong> This is <em>really</em> critical.</p>
<p>Run <code>npm install</code> to install dependencies.</p>
<p><mark>Note this</mark> and <s>ignore that</s>.</p>

Your Task

Create paragraphs that use <strong>, <em>, <code>, and <mark> tags.

HTML preview loading...
Loading...
Click "Run" to execute your code.