HTML Formatting
Make text bold, italic, underlined, highlighted, and code-style in a clean way.
David Miller
December 25, 2025
3.2k66
Formatting tags change how text looks.
Common tags
<p><b>Bold</b> text</p>
<p><i>Italic</i> text</p>
<p><u>Underline</u> text</p>
<p><mark>Highlighted</mark> text</p>
<p>Code: <code>npm run build</code></p>
Preview
Bold text
Italic text
Underline text
Highlighted text
Code: npm run build
Best practice
Use instead of for important text.
Use instead of for emphasis.
#HTML#Beginner