Home >Web Front-end >HTML Tutorial >Interpreting HTML: Misunderstandings of WEB Standards
In HTML4 There are a total of 91 tags in Elements. However, less than a quarter of these tags are frequently used. Among these commonly used tags, two tags are the most versatile - div and span. These two structural tags are widely used in web page production because they do not have presentation styles and semantics. In addition, many people directly misunderstood the WEB standard as div+CSS, so special tags appeared on a page. There are many divs or span tags, although these places have more semantic tags to implement them.
Table-style page layout has ushered in an era of Web production because of its simplicity and the existence of Web production software with visual operations such as Dreamweaver. It is precisely because of this that too many Web designers have never I really paid attention to the real semantics of HTML tags. When Web standards began to rise, they were directly understood as the layout of div+css.
So the structure tags in web standards have almost become a div showroom.
The overuse of div tags has led to many people's misunderstanding of Web standards. The most obvious point is that when the web page switches to using div tag layout, the table tag is ruthlessly abandoned, as if Web standards have been understood. The achievement is div+css. In fact, the table tag cannot be abandoned. When data content needs to be displayed, the advantages of the HTML structure constructed by the table tag are stronger than the layout constructed by the div tag. The table tag is still the most consistent tag with HTML semantics when displaying data.
The excessive lengthy code generated by the Table page layout, as well as the mixed HTML style attributes, have seriously affected the performance of the page, especially for websites with large traffic. The solution is to base the page on Web standards of reconstruction. However, the misunderstanding of Web standards has caused the excessive use of divs in the overall structure of the page; and the ideas left over from the Table layout have caused too much nesting of structures on the page. These still affect the overall performance of the page.
So, building pages with more semantic tags is a concept advocated by Web standards. Pages built under this concept should also streamline the code as much as possible to keep the page code as light as possible, allowing the browser to render faster while also facilitating future code maintenance.
Web standards are not a single standard, but a collection of standards, including structure, performance, and behavior. The structure here does not refer to div, but to standardized languages-XHTML, xml.
Obviously tags can achieve bold style, why do we need to use tags and match bold style to achieve it?
The above is the interpretation of HTML: misunderstandings of WEB standards. For more related articles, please pay attention to the PHP Chinese website (www.php.cn)!