Horje
HTML <b> Tag

<b> Defines bold text.

The <b> tag specifies bold text without any extra importance.


How to create HTML <b> Tag

Make some text bold (without marking it as important):
index.html
Example: HTML
 <p>This is normal text - <b>and this is bold text</b>.</p> 

Output should be:

How to create HTML <b> Tag

Tips and Notes for HTML <b> Tag

Note: According to the HTML5 specification, the <b> tag should be used as a LAST resort when no other tag is more appropriate. The 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 be denoted with the <mark> tag. Tip: You can also use the following CSS to set bold text: "font-weight: bold;".

What Audio Format and Browser will Support for HTML <b> Tag

Output should be:

What Audio Format and Browser will Support for HTML <b> Tag

How to Use CSS to set bold text

Use CSS to Set Bold Text This is normal text - and this is bold text.
index.html
Example: HTML
<p>This is normal text - <span style="font-weight:bold;">and this is bold text</span>.</p>

Output should be:

How to Use CSS to set bold text

How to set Default CSS Settings

Most browsers will display the <b> element with the following default values: Change the default CSS settings to see the effect.
index.html
Example: HTML
<style>
b { 
  font-weight: bold;
}
</style>

Output should be:

How to set Default CSS Settings





Category:
Web Tutorial
Sub Category:
HTML Tag
Uploaded by:
Admin


Read Article
https://develop.horje.com/learn/1434/reference