In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces the relevant knowledge of "what is the basic specification of HTML". The editor shows you the operation process through an actual case, the operation method is simple and fast, and it is practical. I hope this article "what is the basic specification of HTML" can help you solve the problem.
HTML is a weak language.
HTML is not case sensitive
The suffix name of the HTML page is html or htm (some systems do not support the suffix length of more than 3 characters, such as dos systems)
The structure of HTML:
Declaration section: the main function is to tell the browser which standard is used for this page. It's the HTML5 standard.
Head section: tell the server some additional information about the page. Will not be displayed on the page.
The body section: the code we write must be placed in this tag.
At present, IE browsers do not support H5 at all, the best one is Opera browser, which can support more than 95%, followed by google, which can support part of H5.
1. Write the specification of XHTML:
(1) all tag elements should be nesting correctly, not cross-nesting. Examples of correct writing:
(2) all marks must be lowercase.
(3) all marks must be turned off.
Bilateral markings:
One-sided tag:
Turn into, and
(4) all attribute values must be in quotation marks.
(5) all attributes must have values. 、
(6) the beginning of an XHTML document must have a DTD document type definition.
2. Basic grammatical features of HTML (1) HTML is insensitive to line breaks and insensitive to tab
HTML only cares about the nested structure of tags, nested relationships. Who is nested by whom and who is nested by whom has nothing to do with line wrapping and tab. Whether or not to wrap lines, tab does not tab, do not affect the structure of the page.
In other words, HTML either relies on indentation to indicate nesting, or looks at the package relationship of the label. However, we find that there is good indentation and the code is easier to read. Everyone is required to indent the label correctly.
Baidu pursues the ultimate display speed, so there is no line break or tab for HTML tags. HTML has nothing to do with line wrapping. The level of tags is still clear, but programmers can no longer read them. As shown in the following figure:
(2) blank folding phenomenon
Between all the text in HTML, if there are spaces, line breaks, and tab will be folded into a space display.
Examples are as follows:
(3) the label should be strictly closed.
It is disastrous that the label is not closed.
Examples of non-closed labels are as follows:
This is the end of the content about "what is the basic specification of HTML". Thank you for your reading. If you want to know more about the industry, you can follow the industry information channel. The editor will update different knowledge points for you every day.
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.