HTML bold tag
HTML bold tag is represented by <b> tag.
HTML <b> tag is used to display the written text in bold format. It is strictly a presentational element. If you want to show your text in bold letters and not have real semantic meaning, then put it within <b>.......</b> tag.
The b tag is explicit whereas strong tag is semantic.The <strong> tag adds extra semantic meaning to the HTML document.
It is recommended to use strong tag for bold format now.
<p> Hello guys, <b>this is the method to write bold text.</b></p>
Output :
Hello guys, this is the method to write bold text.
Note: According to the HTML 5 specification, the <b> tag should be used as a LAST resort when no other tag is more appropriate. The HTML 5 specification states that headings should be denoted with the <h1> to <h6> tags, emphasized text should be denoted with the <em> tag, important text should be denoted with the <strong> tag, and marked/highlighted text should use the <mark> tag.
Tip: You can also use the CSS "font-weight" property to set bold text.
© 2025 Easy To Learning. All Rights Reserved | Design by Easy To Learning