In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-09 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
Today, I would like to share with you the relevant knowledge of what the html5 text control tag is, detailed in content and clear in logic. I believe most people still know too much about this knowledge, so share this article for your reference. I hope you can get something after reading this article.
Html5 text control tags are: 1, title tag (H2, h3, h4, h5, h6, H7); 2, paragraph mark (p); 3, horizontal line mark (hr); 4, line break mark (br); 5, text formatting tag (b, strong, I, em, s, del, u, ins); 6, special character tag.
The operating environment of this tutorial: windows7 system, HTML5 version, Dell G3 computer.
Html5 text control tag
1. Headings and paragraph marks
A well-structured article usually has headings and paragraphs, and HTML pages are no exception. In order to make the text in the page appear in an organized manner, HTML provides corresponding tags.
(1) title mark
In order to make web pages more semantic, title tags are often used in pages. HTML provides six levels of titles, namely, and, and, decreasing in importance.
This is title 1, this is title 2, this is title 3, this is title 4, this is title 5, this is title 6.
(2) paragraph marking
In order to display the text in an organized way in a web page, it is inseparable from paragraph markings. Just as we usually write articles, the whole web page can be divided into several paragraphs, and the marking of paragraphs is
. The basic syntax format is as follows:
Paragraph text
Example:
It is appropriate to chase leftover courage after the poor aggressors
Do not sell the name of the overlord of learning.
Ah, if Heaven had a feeling heart, it too much grow old,
Change is the Way: Great seas have turned into fields (and rocky folds).
(3) horizontal marking
In web pages, it is often seen that some horizontal lines separate paragraphs from paragraphs, making the structure of the document clear and hierarchical. These horizontal lines can be achieved by inserting pictures or simply by markup, which is to create tags across the horizontal lines of a web page.
Example:
Hr horizontal line:
(4) newline marking
In HTML, the text in a paragraph is arranged from left to right to the right end of the browser window, and then wraps automatically. If you want a piece of text to force line wrapping, you need to use a newline tag.
Example:
Html is the basic language of web page making.
2. Text formatting tags
In the web page, sometimes need to set bold, italic ring underline effect, then you need to use HTML text formatting tags, so that the text is displayed in a special way, commonly used text formatting tags are shown in the following table.
Mark display effect
And
The text is displayed in bold (b defines the text in bold, and the strong definition emphasizes the text.
And
Text is displayed in italics (I define italics and em defines emphasized text. )
And text are displayed as deleted lines (s is not recommended by HTML5) and text is displayed as underlined (u is not recommended by HTML5)
Example:
Text bold text italics text italics
3. Special character marks
When browsing the web, you will often see some text containing special characters, such as mathematical formulas, copyright information and so on. So how do you display text that contains special characters on a web page? HTML prepares alternative codes for and doors for these special characters, as shown in the following table.
Example:
X
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.