Ordered list. You only need to remember the meaning and use it flexibly. Labels are written in the same way;
Note: 1) HTML5 standards do not recommend secondary footer links
; 2) THML5 does not allow Nested in the address label;
Article: indicates an article tag (indicating an independent container in a document, page, application, or website, which is aggregation in principle ), when a friend uses him to meet the above usage, there will be no errors.
Labels are written in the same way; Note: 1) the label article can be nested, but they must be partially related to the whole; 2) They cannot be used.
Tag; 3) He and Labels are easy to confuse, so pay attention to them. (I will talk about how to make a choice between the two ;)
Section: A block definition label (indicating a document or a general block of an Application). Generally, it contains a set of similar theme content. Generally, it contains a title; you can use this label to write: articles, tabs in the tag dialog box, and other similar functions. Here you will find that the label is similar to the label of article, right? So how can they be correctly applied in development?
In fact, it's quite easy to think like this: if you need a separate module in your page to implement a separate function, that is, high aggregation, it will be used.
Use it for other purposes As long as you want to use it in this way, there is no problem;
Aside: defines a sidebar label (indicating that some content does not have a great relationship with the page subject, but it can exist independently). It can be used to implement: link boxes, advertisements, and links of related articles on the promotion reference, sidebar, and so on;
Note: 1) if multiple aside tags are used, they should be behind the main content, which is conducive to SEO search and improved accessibility; 2) for images related to the main content of the article, use
(This will be introduced in later articles) label instead of using it;
Footer: The footer label (the label corresponding to the header label) can implement the following functions: Appendix, index, copyright page, and license agreement. Statement in the previous article
Labels are written in the same way; Note: 1) the footer is not necessarily at the end of the element; but it is usually like this; 2) it cannot be placed
Tags; they cannot be nested with each other, or Element;
Second question:
Html5 container
What is the meaning of survival in HTML5?
The div tag has appeared in HTML a long time ago. Its full division is (division), and many new tags in HTML5 are the unified definition of its functions, because div itself does not have any semantics; but you can add css styles to it; this will make some of our ideal results for the page; why does HTML5 still exist? That is because, in some cases, you may find that any tag in HTML5 is not suitable for the semantics you need, so we need to use the div label at this time, and say that the div should talk about the label corresponding to him, it is also a function and function of a tag without any semantics. It is the same as div, but its usage is different: div is a block-level silent container, and span is a phrase-less container; (I will talk about some span in detail later) labels;
I believe that my friends are familiar with the usage of div, so I will not talk about its usage here. I only provide some suggestions for using div in HTML5:
1) if you think it is better to use a new tag in HTML5 than to use a div, you must use a new tag. Because div does not have any semantics, This is not advocated by html5;
2) If the effect is needed, you can add a div tag outside the HTML5 new tag, which will not have a big impact on the semantics in html;
Third question:
How can I use ARIA to improve accessibility?
I don't know if my friends have found that I have been talking about semantics since I wrote the first HTML5 blog. Is semantics really so important? How can I improve access and search by Zeng Jia SEO through semantics? Because some SEO and browsers or screen readers (an article reader for people with disabilities) are currently making some new functions according to the new HTML5 standards; they will have a new semantics that corresponds directly to their own functions. If Web developers do the same, then your website will be highly applied;
The above emphasizes the importance of semantics. Here we will tell you a better hint of strong semantics. It must be nice, because this hint is not necessarily known by friends:
Concept Introduction: WAI-ARIA (Web Accessibility Initiative's Accessible Rich Internet Applications) Accessibility webpage Initiative Accessible Rich Internet Applications, referred to as ARIA, he is a technical specification; based on the semantics provided by HTML, he uses attributes to fill in some semantic gaps;
Now is usage writing
1) correct use of the landmark role In ARIA:
1) role = banner (banner)
2) role = navigation (navigation)
3) role = main (subject)
4) role = complementary (Supplemental content)
5) role = contentinfo (content information)
Tip: the landmark role is only one of the ARIA specifications. If you are interested, go to the official website to read it (Address: www.w3.org/TR/wai-aria /)
2) include the screen reader test in your daily development; (because it is the most direct reflection of the meaning of your website)
3) correctly define the id and class for the tag (the semantics must be obvious );
4) correctly use the class and its microformats;
Many people know that class attributes can only apply CSS styles to a group of elements. This is not the case; in fact, he can also make a strong sense without referencing additional labels. This is a microformat, the standard style uses the agreed class name to mark an HTML block so that Zeng Qiang can interact with applications, smart search, and search robots;