1 Answer
Ankith Reddy

The b tag in HTML is used to set the bold text. According to HTML5 specification, use the <strong> tag for key text.

Let us now see an example to implement the b tag in HTML−


 Live Demo

<!DOCTYPE html>
<h2>Reference Links</h2>
   <a href="https://www.tutorialspoint.com/online_dev_tools.htm" accesskey="t">Tools</a><br>
   <a href="https://www.tutorialspoint.com/codingground.htm" accesskey="c">Online Compiler</a><br>
   <a href="https://www.tutorialspoint.com/whiteboard.htm" accesskey="w">Whiteboard</a><br>
<p>Above, we saw some <b>useful resources</b> for users.</p>


In the above example, we have used the <b> to set the bold text−

<p>Above, we saw some <b>useful resources</b> for users.</p>

The bold tag adds a darker color to the text.


We use cookies to provide and improve our services. By using our site, you consent to our Cookies Policy.