Table of Contents
html5 text control tags

这是标题 1" >,

,

,

,

and
, with decreasing importance from

to

.
这是标题 6
Home Web Front-end Front-end Q&A What are the html5 text control tags?

What are the html5 text control tags?

Jan 11, 2022 pm 02:18 PM
html5

html5 text control tags include: 1. Title tags (h1, h2, h3, h4, h5, h6); 2. Paragraph tags (p); 3. Horizontal line tags (hr); 4. Line break tags (br); 5. Text formatting tags (b, strong, i, em, s, del, u, ins); 6. Special character tags.

What are the html5 text control tags?

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

html5 text control tags

1, title and paragraph tags

一Articles with a clear structure usually have titles and paragraphs, and HTML web pages are no exception. In order to display the text in the web page in an orderly manner, HTML provides corresponding tags.

(1) Title tag

In order to make the web page more semantic, title tags are often used in the page. HTML provides 6 levels of titles. That is,

,

,

,

,

and
, with decreasing importance from

to

.
<h1>这是标题 1</h1>
<h2 id="这是标题-nbsp">这是标题 2</h2>
<h3 id="这是标题-nbsp">这是标题 3</h3>
<h4 id="这是标题-nbsp">这是标题 4</h4>
<h5 id="这是标题-nbsp">这是标题 5</h5>
<h6 id="这是标题-nbsp">这是标题 6</h6>
Copy after login

What are the html5 text control tags?

(2) Paragraph Marks

To display text in an orderly manner on a web page, paragraph marks are indispensable , just like we usually write articles, the entire web page can also be divided into several paragraphs, and the mark of the paragraphs is

. The basic syntax format is as follows:

<p>段落文本</p>
Copy after login

Example:

<p>宜将剩勇追穷寇, </p>
<p>丌可沽名学霸王。 </p>
<p>天若有情天亦老, </p>
<p>人间正道是沧桑。 </p>
Copy after login

What are the html5 text control tags?

## (3) Horizontal line mark


In web pages, we often see some horizontal lines separating paragraphs from each other, making the document structure clear and hierarchical. These horizontal lines can be achieved by inserting an image, or simply by using a tag,
, which creates a horizontal line across the page.

Example:

<p>hr 水平线:</p>
<hr />
Copy after login

What are the html5 text control tags?

(4) Line break tag

in HTML , the text in a paragraph will be arranged from left to right, until the right end of the browser window, and then automatically wrap. If you want a certain text to be forced to wrap in a new line, you need to use the line break tag
.

Example:

<p>html语言是<br />网页制作的<br />基本语言</p>
Copy after login

What are the html5 text control tags?

2. Text formatting tag

on the web page , sometimes you need to set bold, italic or underline effects for text. In this case, you need to use text formatting tags in HTML to display the text in a special way. Commonly used text formatting tags are shown in the table below.

##Mark##and< ;strong> and The text is displayed with strikethrough (deprecated in HTML5 s) ## and text is underlined (deprecated in HTML5 u)

示例:

<b>文本加粗</b><br />
<strong>文本加粗</strong><br />
<em>文本斜体</em><br />
<i>文本斜体</i><br />
Copy after login

What are the html5 text control tags?

3、特殊字符标记

浏览网页时常常会看到一些包含特殊字符的文本,如数学公式、版权信息等。那么如何在网页上显示这些包含特殊字符的文本呢?HTML为这些特殊字符准备了与门的替代代码,如下表所示。

What are the html5 text control tags?

示例:

x<y<br />
版权符号&copy;<br />
a&b<br />
Copy after login

What are the html5 text control tags?

相关推荐:《html视频教程

The above is the detailed content of What are the html5 text control tags?. For more information, please follow other related articles on the PHP Chinese website!

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

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
4 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. Best Graphic Settings
4 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. How to Fix Audio if You Can't Hear Anyone
4 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
WWE 2K25: How To Unlock Everything In MyRise
1 months ago By 尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

Table Border in HTML Table Border in HTML Sep 04, 2024 pm 04:49 PM

Guide to Table Border in HTML. Here we discuss multiple ways for defining table-border with examples of the Table Border in HTML.

HTML margin-left HTML margin-left Sep 04, 2024 pm 04:48 PM

Guide to HTML margin-left. Here we discuss a brief overview on HTML margin-left and its Examples along with its Code Implementation.

Nested Table in HTML Nested Table in HTML Sep 04, 2024 pm 04:49 PM

This is a guide to Nested Table in HTML. Here we discuss how to create a table within the table along with the respective examples.

HTML Table Layout HTML Table Layout Sep 04, 2024 pm 04:54 PM

Guide to HTML Table Layout. Here we discuss the Values of HTML Table Layout along with the examples and outputs n detail.

HTML Input Placeholder HTML Input Placeholder Sep 04, 2024 pm 04:54 PM

Guide to HTML Input Placeholder. Here we discuss the Examples of HTML Input Placeholder along with the codes and outputs.

HTML Ordered List HTML Ordered List Sep 04, 2024 pm 04:43 PM

Guide to the HTML Ordered List. Here we also discuss introduction of HTML Ordered list and types along with their example respectively

Moving Text in HTML Moving Text in HTML Sep 04, 2024 pm 04:45 PM

Guide to Moving Text in HTML. Here we discuss an introduction, how marquee tag work with syntax and examples to implement.

HTML onclick Button HTML onclick Button Sep 04, 2024 pm 04:49 PM

Guide to HTML onclick Button. Here we discuss their introduction, working, examples and onclick Event in various events respectively.

See all articles
Display effect

The text is displayed in bold (b defines bold text, strong defines emphasized text.

Text is displayed in italics (i defines italic text and em defines emphasized text.)

## and