Check common mistakes in HTML5 tag usage and html5 tag misunderstanding
Recently, I learned how to use HTML5 tags in the group. You can select several tags and learn them first. Then, I will explain them to you. this process is quite rewarding. however, HTML5 is still in the draft stage. Some new tag elements are often interpreted as changing, and even labels are added and removed frequently (such as hgroup ), at the same time, there are no good examples for using HTML5 for the existing large portal websites, so that everyone can learn more. the following is an article I have seen in html5doctor. At this stage, it may be easier to understand what the master explains. Due to lack of learning skills, a lot of things you don't understand may just be translated literally. If not, please give us some advice.
In this article, I will share with you the small errors and bad practices of html5 page building, so that we can avoid these errors in future work.
Do not set
Define styles as a simple container
A common mistake we see is to arbitrarily
Tags are replaced by tags, especially those used to enclose containers. In XHTML or HTML4, we will see code similar to the following:
Http://html5.662p.com/thread-47-1-1.html
Html5 new tag elements such as: The newly added header and footer labels are mainly used to represent the DOM semantics.
No special style
Before HTML5, both header, body, and footer must be expressed using div.
The new HTML5 labels can be expressed directly using clear labels such as header, article, and footer to make the structure of the document clearer, in the previous design, div and the property id = "container" were required. Now we can use a label similar to article to express it. It is just more convenient to act on DIV.
What labels should I remember when learning html? What is html5?
Learning html focuses on practice. In practice, we will gradually understand what is important and what is not. However, it is ineffective to remember some labels in advance.
HTM5 is a new web standard proposed by W3C. It not only adds some new tags to the original but also standardizes html tags, at the same time, HTML5 has added many exciting javascript APIs. Therefore, HTML5 can be understood as a collection of standard HTML + new javascript APIs + css3.