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/02 Report--
This article mainly introduces "summing up HTML-related knowledge". In daily operation, I believe many people have doubts about summarizing HTML-related knowledge. The editor consulted all kinds of materials and sorted out simple and easy-to-use operation methods. I hope it will be helpful for you to answer the doubts about "summing up HTML-related knowledge". Next, please follow the editor to study!
1. What is HTML?
HTML is a language used to describe web pages, referring to the hypertext markup language: HyperText Markup Language
HTML is not a programming language, but a markup language
HTML documents are also called web pages
Basic structure of 2.HTML
: document declaration
The root element of the HTML page
Used to define the header of the document, which is the container for all header elements
Provides meta-information about the page, at the head of the document, and does not contain any content
The title of the document
Define the body of the document, including all the contents of the document
Use 3.HTML tags?
HTML tags are keywords surrounded by angle brackets, and usually appear in pairs, such as, of course, there are individual, but relatively few, such as
The first tag in the tag pair represents the start tag, and the second tag represents the end tag.
Introduction of 4.HTML commonly used tags
In addition to several tags of the basic structure of HTML, HTML also has some basic tags that are more commonly used.
(1) text label:
H2-h7: used to define the title, H2 is the largest title and H7 is the minimum title
P: define paragraph
Span: combining inline elements in a document
Br: line break
Hr: horizontal Lin
Strong/b: bold text
Em/i: italic
U: underline
`s: delete Lin
Pre: define preformatted text and keep the original format
Sub: subscript
Sup: superscript
Blockquote: block referenc
(2) layout label:
Div: define partitions or sections in a document, dividing the document into separate, different parts
Header: defines the header of the page
Aside: used as a sidebar for articles
Section: defining sections in a document
Footer: defines the footer of a document or section, usually containing the author of the document, copyright information, links to terms of use, contact information, etc.
Article: specify other independent content of the article, such as title, content, comments
(3) Multimedia tags:
Img: for inserting images in web pages
Audio: define sound, such as music or other audio streams
Video: define videos, such as movie clips or other video streams
(4) hyperlink tag:
A: define hyperlinks and specify jumps between pages
(5) Serialize the label:
Ul: define unordered lists
Ol: define an ordered list
Li: defines list items that can be used in unordered list ul and ordered list ol
Dl: defines a list of definitions
Dt: defines the items in the definition list (that is, the terminology section)
Dd: defines the definition part of an entry in the definition list
(6) form label:
Table: defining HTML tables
Tr: define the rows of the table
Td: defines the cells of the table
Th: define header
Caption: define table title
Col: define attribute values for one or more columns in a table
Colgroup: used to combine columns in a table for formatting
Thead: defines the header of a table
Tbody: table body, that is, the body
Tfoot: defines the footer (footnote or table note) of a table
(7) form label:
Form: used to create HTML forms for user input
Input: used to collect user information
Button: define a button
Select: create a single or multiple selection menu
Option: define an option in the drop-down list
Textarea: a text input control that defines multiple lines
Label: define dimensions (tags) for input elements
Fieldset: used to group related elements within a form
Legend: define a title for the fieldset element
Considerations for 5.HTML
The HTML file is named when the suffix is .html or .htm.
HTML tags and attributes are case-insensitive. It is recommended that HTML tags and attributes be lowercase, and attribute values must be enclosed in double quotation marks.
HTML tags start with the start tag and end with the end tag
Indent and wrap between HTML tags as far as possible, each line of code should not be too long, easy to read and maintain
The use of HTML tags must comply with tag nesting rules, such as prohibiting a tags from nesting a tags, p tags nesting div tags, etc.
It is recommended not to use tags that have been discarded or disapproved of by HTML, and to use less table layout, iframe framework nesting and flash players.
At this point, the study of "summing up the relevant knowledge of HTML" is over. I hope to be able to solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!
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.