HTML Tags

HTML <b> Tag

The <b> tag renders text in bold to draw attention, without conveying any extra importance or emphasis.


What is the <b> tag?

The <b> element represents a span of text to which attention is drawn for utilitarian purposes, without implying that it is more important. Typical uses include keywords, product names, or the lead sentence of an article. By default browsers display <b> content in bold.

Complete example

<!DOCTYPE html>
<html lang="en">
  <body>
    <p>The <b>Betterwork</b> platform lists thousands of internships.</p>
    <p>Enter your <b>full name</b> and email to apply.</p>
  </body>
</html>

<b> versus <strong>

<b> is purely stylistic bold text with no added meaning, whereas <strong> marks text as having strong importance, seriousness, or urgency, and screen readers may announce it differently. Use <strong> when the emphasis is meaningful, and <b> only when you want bold styling for stylistic reasons.

💡

For genuinely emphasised or important text, prefer semantic elements: <strong> for importance and <em> for stress emphasis. Reserve <b> for bold styling with no semantic weight.

The <b> tag is an inline element supported in all browsers.

Ready to use your HTML skills?

Find web development internships and fresher jobs across India.

Browse Web Dev Internships