🚀 LEVEL UP TO SENIOR:Unlock 500+ Advanced Practical Challenges & Expert Masterclasses.
🎓 COURSERA PARTNER:Earn professional Google, Meta, and IBM certificates to supercharge your resume.
REFERENCEhtml

html Documentation

LOADING ENGINE...

HTML Text Formatting

Semantic vs presentational. strong, em, b, i, mark.

text-format.html
<!-- Semantic -->
<p>This is <strong className="text-amber-400">important</strong> and <em className="text-blue-400">emphasized</em>.</p>
✍️
text-format.html
1 / 7
✍️

Tutor:HTML text formatting: use tags to give structure and meaning. Two categories: semantic (strong, em) add meaning; presentational (b, i, u) only change appearance. Prefer semantic when you want to convey importance or emphasis.


Text Formatting Mastery

Semantic vs presentational. strong, em, b, i, mark.

Concept 1: Text Formatting

HTML text formatting uses tags to give structure and meaning. Semantic tags (<strong>, <em>) add meaning. Presentational tags (<b>, <i>) only change appearance.

System Check

Which tag conveys strong importance and is preferred for accessibility?


Community Holo-Net

Text Format Patterns

Using strong, em, mark? Share your patterns.

Enjoying this guide?

Codesyllabus is 100% free and open-source. Support our mission, pay for server infrastructure, and fuel new tutorials by buying us a coffee!

HTML Text Formatting

Author

Pascual Vila

Frontend Instructor.

Text formatting in HTML uses tags to give structure and meaning to text. Two main categories: semantic (<strong>, <em>) add meaning and are preferred for accessibility; presentational (<b>, <i>, <u>) only change appearance. Use semantic tags when you want to convey importance or emphasis; use CSS (e.g. <span class="...">) for pure style.

Common tags

<strong> = strong importance. <em> = emphasis. <b> = bold. <i> = italic. <u> = underline. <s> = strikethrough. <mark> = highlighted (e.g. search results).

Best practices

Prefer <strong> over <b> and <em> over <i> when the content has real importance or emphasis. Screen readers and search engines use this. For visual-only styling, use CSS.

Text Formatting Glossary

strong / em
Semantic: strong = strong importance, em = emphasis. Convey meaning to screen readers and search engines. Prefer over b/i when content has importance.
b / i / u
Presentational: bold, italic, underline. No extra meaning. Use when style only; prefer CSS or semantic tags when appropriate.
mark / s
mark = highlighted for reference. s = strikethrough (no longer accurate). Use mark for search highlights; prefer CSS for generic styling.