Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What is the semantics of b and I tags in HTML5

2025-04-08 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/03 Report--

This article mainly introduces the semantics of b and I tags in HTML5, which can be used for reference by interested friends. I hope you will gain a lot after reading this article.

The b and I tags are not recommended or even opposed in the current unspoken rules of the Web standard, because they are thought to be "bold" and italic, without any "semantics". More strong and em tags are used instead.

The new HTML5 working draft defines the b and I tags as follows:

The following is a code snippet:

The b element now represents a span of text to be stylistically offset from the normal prose without conveying any extra importance, such as key words in a document abstract, product names in a review, or other spans of text whose typical typographic presentation is emboldened.

The / / b element is now described as a paragraph of text that is stylistically prominent and does not contain any additional importance in an ordinary article. For example: keywords in document summary, product name in comments. Or the typesetting method emphasized by the representative.

The i element now represents a span of text in an alternate voice or mood, or otherwise offset from the normal prose, such as a taxonomic designation, a technical term, an idiomatic phrase from another language, a thought, a ship name, or some other prose whose typical typographic presentation is italicized. Usage varies widely by language.

The / / I element is now described as highlighting dissent or tone or other text in an ordinary article, such as a classification name, a technical term, a proverb in a foreign language, an idea, etc. Or it represents the typography of italics.

It can be noted from the specification that the b and I elements will be given true semantics. More predictive attention should be paid to the different uses of b, I, strong and em.

Thank you for reading this article carefully. I hope the article "what are the semantics of b and I marks in HTML5" shared by the editor will be helpful to you. At the same time, I also hope you will support us and pay attention to the industry information channel. More related knowledge is waiting for you to learn!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report