Lesson 3 of 15
Text Formatting
Text Formatting Tags
HTML provides several inline tags for formatting text within paragraphs:
| Tag | Purpose | Renders as |
|---|---|---|
<strong> | Important text | bold |
<em> | Emphasized text | italic |
<code> | Inline code | monospace |
<mark> | Highlighted text | highlighted |
<s> | Strikethrough |
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.