What is em in html

青灯夜游
Release: 2021-12-01 11:28:19
Original
16278 people have browsed it

In HTML, the full name of em is "emphasis", which is an emphasis tag used to present text that needs to be emphasized. The syntax is "text that needs to be emphasized". The em tag tells the browser to represent the text within it as emphasized content; and for all browsers, this means displaying the emphasized text in italics.

What is em in html

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

In HTML, the full name of em is "emphasis", which is an emphasis tag used to present text that needs to be emphasized.

What is em in html

Grammar:

<em>需要强调的文本</em>
Copy after login

Compare:


普通文本
<em>需要强调的文本</em>
Copy after login

What is em in html

Description:
## The

# tag tells the browser to represent the text within it as emphasized content. For all browsers, this means displaying this text in italics.

Adding emphasis to text also requires skill. If you emphasize too much, some important phrases will be missed; if you emphasize too little, you won't really highlight the important parts. It's the same with condiments that it's best not to overuse the emphasis.

Although the contents modified by tags are currently displayed in italics, these contents also have a broader meaning. One day in the future, browsers may also use other special effects to Display highlighted text. If you only want to italicize text, use the tag. In addition, documents can also include cascading style definitions that change the display of text.

In addition to emphasis, consider using the tag when introducing new terms or as a set style when referencing a specific type of term or concept. The tag can be used to distinguish these names from other italicized words.

Recommended tutorial: "

html video tutorial"

The above is the detailed content of What is em in html. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template