HTML <b> Tag

HTMLWeb DevelopmentFront End Technology

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="" accesskey="t">Tools</a><br>
   <a href="" accesskey="c">Online Compiler</a><br>
   <a href="" 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.

Published on 19-Jun-2019 14:59:01