<b> Tag HTML CSS Learning b bold tag in html
The HTML <b> tag is used to create a 'b' element, which represents bold text in an HTML document. The <b> tag should be used to markup text as bold without conveying any extra importance, for example in article abstracts, where the beginning of an article is set in bold text.
The <b> tag specifies bold text without any extra importance.
The HTML <b> tag merely gives text a bold appearance but does not provide any semantic meaning to the text. This tag is also commonly referred to as the <b> element. TIP: The HTML <b> tag should not be confused with the <strong> tag which gives text a strong emphasis.
Bold tag in HTML with example
Example
Use CSS to set bold text:
<p>This is your text here - <span style="font-weight:bold;">bold text here</span>.</p>
Default CSS Settings
Most browsers will display the <b>
element with the following default values:
Example
b {
font-weight: bold;
}
Comments :
Post a Comment