The HTML <b> tag is used for specifying bold text.It is also a HTML5 tag.

You can understand it by a simple example:-

e.g.:-

<b>This text is BOLD!</b>

Result:- This text is entirely BOLD!


Do not confuse the <b> element with the <mark>, <em>, or <strong> elements. The <strong> element use to represents text of certain importance, <em> puts some emphasis on the text and the <mark> element represents text of certain relevance. .The <b> element doesn't convey such special semantic information; use it only when no others fit.

Do not use <b> tag for titles and headings. For this purpose, use the <h1> to <h6> tags.

0 comments:

Post a Comment