Posts in current category

HTML5 <b> tag


May 03, 2021 13:15 HTML5


Table of contents


Instance

In HTML5, you can use the hashtag to achieve bolder effects on some text, refer to the following example:

<p>这是一个普通的文本- <b>这是一个加粗文本</b></p>
Try it out . . .

Browser support

HTML5 <b> tag HTML5 <b> tag HTML5 <b> tag HTML5 <b> tag HTML5 <b> tag

All major browsers support the label.


Label definition and instructions for use

The label defines the text in bold.


The difference between HTML 4.01 and HTML5

No.


Tips and comments

Note: According to html 5's specification, the label should be the last resort and should only be used if no other tag is appropriate. HTML 5 Specification Statement: The title should be indicated by the label, the highlighted text should be represented by the label, the important text should be represented by the label, and the marked or highlighted text should be represented by the 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.