What is italic tag in html5

WBOY
Release: 2021-12-17 14:17:03
Original
12525 people have browsed it

Italic tag in html5: 1. "i" tag, the syntax is "italic", the i tag defines a part that is different from the rest of the text, and puts this part of the text Presented as italicized text; 2. "em" tag, the syntax is "Italic". The em tag is a phrase tag used to render emphasized text in italics.

What is italic tag in html5

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

What is the italic tag in html5?

#In html, if you want to make the text italic, you can use two tags, one is i tag, the other is the em tag.

Defines a portion of text that is different from the rest of the text and renders this portion of text in italics. Tags are used to represent technical terms, idioms in other languages, ideas, spaceship names, etc. The element is used when no other element with appropriate semantics can be used. The

tag is a phrase tag used to render emphasized text.

The example is as follows:

<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>Document</title>
</head>
<body>
<p>这一段应该是<i>斜体</i>样式</p>
<p>这一段也应该是<em>倾斜</em>的样式</p>
</body>
</html>
Copy after login

Output result:

What is italic tag in html5

Recommended tutorial: "html video tutorial"

The above is the detailed content of What is italic tag in html5. 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