In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/03 Report--
This article mainly introduces the detailed explanation of the elements and basic grammar of Html5. In the daily operation, I believe that many people have doubts about the elements and basic grammar of Html5. The editor consulted all kinds of materials and sorted out simple and easy-to-use operation methods. I hope it will be helpful to answer the doubts about the elements and basic grammar of Html5. Next, please follow the editor to study!
HTML tag
Opening tag (opening tag): open tag
Closing tag (closing tag): closing label
element
Definition: the HTML element refers to the code from the start tag to the end tag (the element starts with the start tag and ends with the accommodation tag)
The content of an element: the content of an element refers to the content between the start tag and the end tag
The characteristics of the element:
1, most HTML elements can be nested (can include other HTML elements)
2the HTML document is composed of nested HTML elements.
3. Don't forget the closing tag. Future versions of HTML will not allow omitting the closing tag.
4, empty html element
5. The html element with no content is called the empty content of the element, and the empty element is closed in the opening tag
Note:
The difference between empty elements and empty content: the opening and closing tags of empty elements are the same, focusing on the tag. Empty content means that the content within the element is empty and focuses on the content.
Basic structure of HTML
It's not a tag, it's just a declaration that helps browsers correctly reality web pages
Element is a container for all header elements
Tags are always in the head element and provide metadata about the HTML document
Tags are used to define style information for HTML documents
Define the title of the document
The text between is the content of web courseware.
Between the text description web pages
HTML attribute
Html tags can have attributes that provide more information about html elements
Attributes always appear as name / value pairs
Attribute values should always be enclosed in parentheses. Double quotation marks are the most common, but there is no problem using single quotation marks.
HTML comment
Comments can be inserted into the code to improve the readability of the code. Comments will not be displayed on the page and browsers will ignore them.
Format:
XML/HTML Code copies content to the clipboard
Untitled document
# box1 {
Background-color:red
}
.div1 {background:yellow;}
.div2 {border:1px solid # 000;}
I'm a link.
At this point, the study of "detailed explanation of the elements and basic grammar of Html5" 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.