<b> tag Prev Next HTML <b> tag The <b> tag defines bold text. This tag is basically used to mark a text as bold but it does not make the text as an important text. Note/Warning/Info If you wish to mark a text as an important text, then you should use <strong> tag. × Syntax:<b>Text to make bold</b> Example <p><b>Bold text</b></p> Run the Code Default CSS Value font-weight:bold; How Browser will display INLINE. Difference between HTML4.01, XHTML and HTML5 HTML4 XHTML HTML5 None None None Attributes used No specific attribute Note/Info:If you simply wish to make a text bold and not important, then it is better to use CSS font-weight property as – font-weight:bold;If you are looking for a comprehensive knowledge on font-weight property, then learn about CSS Fonts. Global Attributes The <b> tag supports Global attributes. Event Attributes The <b> tag supports Event attributes. Supporting Browsers Related Tags <strong>.To underline a text, you can use the <u> element.You can learn about HTML formatting here. Prev Next Facebook Twitter Google-plus