HTML Tag


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

 Live Demo

<!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.

Updated on: 30-Jul-2019

71 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements