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−
Example
<!DOCTYPE html> <html> <body> <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> </body> </html>
Output
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.