In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-22 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces "what are the knowledge points of HTML elements". In daily operation, I believe many people have doubts about the knowledge points of HTML elements. The editor consulted all kinds of materials and sorted out simple and easy-to-use methods of operation. I hope it will be helpful to answer the questions of "what are the knowledge points of HTML elements?" Next, please follow the editor to study!
HTML element syntax
The HTML element starts the HTML element with the opening tag and ends with the ending tag the content of the element is the content between the opening tag and the closing tag some HTML elements have empty content (empty content) empty elements are closed in the opening tag (ending with the end of the opening tag) most HTML elements can have attributes
Nested HTML elements
Most HTML elements can be nested (can contain other HTML elements).
HTML documents are made up of nested HTML elements.
HTML document instance
This is my first paragraph.
The above example contains three HTML elements.
HTML example interpretation
Elements:
This is my first paragraph.
This element defines a paragraph in the HTML document. This element has a start tag and an end tag.
The element content is: This is my first paragraph.
Elements:
This is my first paragraph.
The element defines the body of the HTML document.
This element has a start tag and an end tag.
The element content is another HTML element (p element).
Elements:
This is my first paragraph.
The element defines the entire HTML document.
This element has a start tag and an end tag.
The element content is another HTML element (body element).
Don't forget the closing tag.
Even if you forget to use the closing tag, most browsers will display HTML correctly:
This is a paragraphThis is a paragraph
The above example is fine in most browsers, but don't rely on it. Forgetting to use the closing tag can produce unpredictable results or errors.
Note: future versions of HTML will not allow omitting the closing tag.
Empty HTML element
A HTML element with no content is called an empty element. The empty element is closed in the opening tag.
It is an empty element that does not close the tag (the tag defines a line break).
In XHTML, XML, and future versions of HTML, all elements must be closed.
Adding a slash to the opening tag, for example, is the right way to turn off an empty element, which is accepted by HTML, XHTML, and XML.
Even if it works in all browsers, use is actually a longer-term guarantee.
HTML hint: use lowercase tags
The HTML tag is case-insensitive:
This is equivalent to the use of uppercase HTML tags on many websites.
W3School uses lowercase tags because the World wide Web Consortium (W3C) recommends lowercase in HTML 4 and enforces lowercase in future (X) HTML versions.
At this point, the study of "what are the knowledge points of HTML elements" 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.