What is the difference between the b tag and the strong tag in html? This article will give you a simple comparison between the b tag and the strong tag, and introduce the difference between the b tag and the strong tag in html. There is a certain reference value, friends in need can refer to it, I hope it will be helpful to you.
First of all, let’s take a look at the style and usage of the tag and tag to bold the text:
A simple code example for bolding the text of the tag:
This is a test text, 1024programmer.com
The URL of 1024programmer.com is: www.php1.cn!
Here use html b tag to bold font
Effect image:
Simple code example for label bold text:
This is a test text, 1024programmer.com
The URL of 1024programmer.com is: www.php1.cn!
Here use html strong tag to bold font
Effect picture:
is an html tag, only 1 character ; and is the label of xhtml in the web standard, which consists of 6 characters.
2. Different purposes
The label is an entity label, and the characters surrounded by it will be set to bold, that is, the text is bold, and its purpose is only to be bold Displaying text is a style/style requirement;
The tag is a logical tag, which means strengthening, and its function is to strengthen the tone of the characters, indicating that the text is more important, reminding readers/ Terminal attention. Generally speaking, in order to achieve this purpose, terminals such as browsers will change characters into bold (bold) and display them in bold.
Summary: The tag is bolded to achieve a bold style, and the tag is bolded to indicate the focus of the text. There is essentially no difference in the implementation effect and usage of the two, and so far all browsers support the bold function of the two. You can choose a label to use according to your needs, and I hope it will be helpful to your study.
【Recommendation for more related tutorials】:
HTML Video Tutorial
Html5 Video Tutorial
bootstrap Video Tutorial
The above is What is the difference between the b tag and the strong tag in html? For more details on the simple comparison between the b tag and the strong tag, please pay attention to other related articles on 1024programmer.com!