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 does em mean in html

2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

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

This article mainly explains "what is the meaning of em in html". The content of the explanation is simple and clear, and it is easy to learn and understand. Please follow the editor's train of thought to study and learn "what is the meaning of em in html"?

In html, em, whose full name is "emphasis", is an emphasis tag that is used to present text that needs to be emphasized, and grammar "text that needs to be emphasized". The em tag tells the browser to represent the text as highlighted; for all browsers, this means displaying the highlighted text in italics.

The operating environment of this tutorial: windows7 system, HTML5 version, Dell G3 computer.

In html, em, whose full name is "emphasis", is an emphasis tag that is used to present text that needs to be emphasized.

Syntax:

Text that needs to be emphasized

Compare this:

Plain text

Text that needs to be emphasized

Description:

The tag tells the browser to represent the text as emphasized. For all browsers, this means displaying the text in italics.

It takes skill to add emphasis to the text. If you emphasize too much, some important phrases will be left out; if you emphasize too little, you will not be able to really highlight the important parts. Like seasonings, it's best not to abuse the emphasis.

Although tag-modified content is now displayed in italics, it also has a broader meaning, and browsers may one day use other special effects to display highlighted text. If you only want to use italics to display text, use tags. In addition, the document can include cascading style definitions to change the display of text.

In addition to emphasis, you can also consider using tags when introducing new terms or when referencing specific types of terms or concepts as fixed styles. Tags can be used to distinguish these names from other italics.

Thank you for your reading, the above is the content of "what is the meaning of em in html". After the study of this article, I believe you have a deeper understanding of what em means in html, and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!

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