In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article will explain in detail what the commonly used tags in Web-html are, and the editor thinks it is very practical, so I share it with you for reference. I hope you can get something after reading this article.
HTML:Hyper Text Markup Language Hypertext markup language
Used to write a language on a page that can be parsed and executed directly by the browser (tags)
Realize the corresponding function through the fixed label
Use the root tag to write the document, and then write the corresponding secondary or multi-level tag in the root tag to realize the corresponding page writing.
Html tag
The html tag is the root tag of the document
Head tag
The header of a page can contain the title of the page, file MIME type, style sheet, script, etc.
Title tag
Set the title of the document
Body tag
The body of an html document that places the content that needs to be presented to the user
Main function: provide the corresponding information for the page, provide the corresponding function of the page
Generally speaking, meta tags are not used.
The larger the h2--h7 number, the smaller the display effect.
Used to split page content and wrap
It is used to split the upper and lower content horizontally, and the horizontal line label occupies one line, so it has its own line feed and line spacing.
In html, no matter how many spaces and carriage returns are parsed into a single space when parsing the page, if you need to wrap the content of the page, you need to use the corresponding newline tag, and if you need to write the space, you need to use the corresponding escape character.
Single label
In html, all tags are basically written as the content of the package in the middle of the start tag, but there are some special tags, in which no content package can be written in the form of a single tag, such as a newline tag, which is usually written / identified at the end.
No special meaning is used to wrap a written label
Div
Span
Ordered list
Automatically add ordered numbers before specifying data
Unordered list
Use symbols to identify each line
Custom list
Custom tag title and content
A hyperlink is a more eye-catching piece of text or an icon in a web page. as long as you click the hyperlink with the mouse, the browser will open the web page pointed to by the hyperlink and jump from one web page to another.
1. Href: specify the URL of the page to which the link points
2. Target: specify where to open the linked document:
(1) _ top: default value, indicating that in the current window
(2) _ blank: in the new window
3. Title: specify additional information about the element:
This information usually displays a piece of tooltip text when you mouse over the element.
Set anchor point
Jump anchor point
1. Src: specify the URL to display the picture (image address / location of the picture)
Relative address: (1) locate the referenced resource relative to the location of the current document. / "indicates that the directory is returned one level above.
(2) relative to the location of the root directory of the site, the location of the referenced resource must start with "
2. Alt: displays alternate text. Use this property to prompt the user when the browser cannot load the image.
3. Width, height: optional attributes
Display the data in tabular form, usually used with the corresponding label of the table
Table: the root tag of the table tag wraps other table tags
Tr: table row label wraps the column label owned by the current row
Th: table title label, written in the first row of the form for writing the contents of the form
Td: tables, wrapping the actual data of each form
Colspan: the number of rows occupied by the current cell
Rowspan: the number of columns occupied by the current cell
Display the data in the form
Form form root tag, which identifies all form tags
Input input box tags, which have different functions in the form according to different type
Action is used for form submission, which submits the data written in the form to the specified path in the form of name=value
Methid is used for form submission get/post data submission
Property description type this property specifies the type of form element. Available options are: text, password, checkbox, radio,submit, reset, file, hidden, image and button. The default selection specifies the name of the form element for the textname attribute. For example, if there are several text boxes on the form, you can identify them by name, such as textl, text2, and so on. The scope of the name attribute is value within the form element. This attribute is optional and specifies the initial value of the form element. Size this attribute specifies the initial width of the form element. If type is text or password, the size of the form element is in characters. For other input types, the width is in pixels maxlength this attribute is used to specify the maximum number of characters that can be entered in the text or password element. The default is infinity
This is the end of this article on "what are the commonly used tags in Web-html". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, please share it for more people to see.
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.