<?xml version="1.0" encoding="utf-8"?>

The bold text tag <b>

The bold text tag <b>

There are different ways to style your text in HTML, and one of the basic ones is to add formatting tags. The paired <b> tag makes the text bold without any extra importance — it's usually used for emphasis.

Don't use the <b> tag to mark headings — instead, make headings with special heading tags from <h1> to <h6> as they also structure the content.

Pro Tip: Consider adding <strong> together with <b>. 99% of the time, you will make semantically important text bold, which can also be important for SEO.

Improve your UX & Product skills with interactive courses that actually work