Home > Web Front-end > Front-end Q&A > What is html italic bold tag?

What is html italic bold tag?

藏色散人
Release: 2023-01-03 09:31:25
Original
4511 people have browsed it

htmlItalic bold tags are tags and tags respectively. The tag is used to define a part that is different from the rest of the text and present this part of the text. is italicized text; the tag is used to define bold text.

What is html italic bold tag?

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

First of all, you need to understand the bold and italic codes in hypertext markup language (html). The bold mark is b and the italic mark is i. In html, marks generally appear in pairs. of.

For example XXXX. A basic web page is contained between and . Specific examples are as follows:

<html>
<head>
<title>此处显示页面标题</title>
</head>
<body >
<h1>一级标题</h1>
<h2><b>加粗显示二级标题</b></h2>
<h3><i>斜体显示三级标题</i></h3>
</body>
</html>
Copy after login

Running effect:

What is html italic bold tag?

Tag introduction:

Tag Definition A portion of the text that is different from the rest of the text and renders it in italics.

Tags are used to represent scientific terms, idioms in other languages, ideas, spacecraft names, etc.

Use the element when no other element with appropriate semantics can be used. Other semantic elements are as follows:

(emphasized text)

(important text)

(marked of/highlighted text)

(title of work)

(a definition item)

Define bold text.

According to the HTML 5 specification, the tag should be used as a last resort and only used when no other tag is suitable. HTML 5 specification states: Titles should be represented by

-
tags, emphasized text should be represented by tags, important text should be represented by tags, marked or high Highlighted text should be represented by a tag.

【Recommended learning: html video tutorial, CSS video tutorial

The above is the detailed content of What is html italic bold tag?. 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