🚀 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
Bold Tag

Make text bold for visual styling. Learn to use the <b> tag and understand when to use it instead of <strong>.

bold.html
<!-- Bold Text -->
<p>This is a
<b>warning</b>
about the product.</p>
<!-- Result: -->
This is a warning about the product.
💪
bold-text.html
1 / 8
💪

Tutor:Sometimes you want to make text bold for visual emphasis, but without adding semantic importance. We use the <b> tag for this. It makes text bold purely for styling purposes.


Text Styling Mastery

Unlock nodes by learning text formatting and semantics.

Concept 1: The Bold Tag

The <b> tag is used to make text bold for visual purposes without adding semantic meaning. It's a presentational element that draws attention to text without implying importance.

System Check

What is the primary purpose of the <b> tag?


Community Holo-Net

Share Styling Tips

Created effective text styling patterns? Share your code and best practices.

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 Bold Tag and Text Styling

Author

Pascual Vila

Frontend Instructor.

The <b> tag is used to make text bold for visual purposes without adding semantic meaning. It's a presentational element that draws attention to text without implying importance.

Visual Styling Only

Unlike <strong>, which indicates semantic importance, the <b> tag is purely for visual styling. Screen readers don't treat <b> differently from regular text, making it suitable for cases where you want visual emphasis without semantic meaning.

When to Use <b>

Use <b> for:

  • Highlighting keywords in a summary or review
  • Making product names or brand names stand out visually
  • Styling text that needs to be bold but isn't semantically important
  • Cases where you specifically want bold styling without semantic emphasis

<b> vs <strong>

Use <strong> when: The text is actually important, urgent, or needs emphasis for meaning. Screen readers will emphasize it, and search engines may give it more weight.

Use <b> when: You just want visual bold styling without semantic meaning. The text isn't more important—it just needs to stand out visually.

Best Practices

For most styling needs, CSS is preferred. However, <b> is still valid HTML5 and appropriate when you specifically want bold styling without semantic meaning. Avoid overusing bold text, as it can reduce readability and make it harder to identify truly important information.

Bold Tag Glossary

<b>
HTML element used to make text bold for visual purposes. Provides no semantic meaning—purely presentational.
<strong>
HTML element that indicates text has strong importance or is serious/urgent. Conveys semantic meaning to screen readers and search engines.
Presentational Element
An HTML element that affects visual appearance but doesn't convey semantic meaning. <b> is a presentational element.
Semantic Element
An HTML element that conveys meaning about the content. <strong> is a semantic element that indicates importance.
Inline Element
An element that flows with text content and doesn't create a new line. <b> is an inline element.