1024programmer HTML5 What is the difference between the b tag and the strong tag in html? A simple comparison between the b tag and the strong tag

What is the difference between the b tag and the strong tag in html? A simple comparison between the b tag and the strong tag

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!

This article is from the internet and does not represent1024programmerPosition, please indicate the source when reprinting:https://www.1024programmer.com/what-is-the-difference-between-the-b-tag-and-the-strong-tag-in-html-a-simple-comparison-between-the-b-tag-and-the-strong-tag/

author: admin

Previous article
Next article

Leave a Reply

Your email address will not be published. Required fields are marked *

The latest and most comprehensive programming knowledge, all in 1024programmer.com

© 2023 1024programmer - Encyclopedia of Programming Field
Contact Us

Contact us

181-3619-1160

Online consultation: QQ交谈

E-mail: [email protected]

Working hours: Monday to Friday, 9:00-17:30, holidays off

Follow wechat
Scan wechat and follow us

Scan wechat and follow us