Coding With Fun
Home Docker Django Node.js Articles Python pip guide FAQ Policy

HTML <b> tag


May 04, 2021 HTML Reference Manual


Table of contents


HTML

This element marks the text to be emphasized in bold. For all browsers, this means displaying the text in bold (bold) style.

<p>这是一个普通的文本- <b>这是一个加粗文本</b>。</p>


Try it out . . .

Browser support

HTML <b> tag HTML <b> tag HTML <b> tag HTML <b> tag HTML <b> tag

All major browsers support the label.


Label definition and instructions for use

The label defines the text in bold.


The default css setting

b { 
    font-weight: bold;
}

The difference between HTML 4.01 and HTML5

No.


Tips and comments

Note: According to the HTML 5 specification, the label should be the last resort and should only be used if no other tag is appropriate. HTML 5 specification declaration: Title should be used Labels slt;h1> - slt;h6>
indicates that the highlighted text should be used with slt;em>
Labels indicate that important text should be represented by a label, and marked or highlighted text should be represented by a label.

Tip: You can also use the "font-weight" property of CSS to set bold text.


Global properties

Labels support the global properties of HTML.


The event property

The tag supports the event properties of HTML.