HTML5 Structure Learning (1): html5 Structure Learning

Source: Internet
Author: User
Tags git workflow

HTML5 Structure Learning (1): html5 Structure Learning

 

1. article Element

Explanation: it indicates the independent and complete content in documents, pages, and applications that can be referenced independently.

Main purposes: blog posts, comments, posts in posts, or independent plug-ins.

Articles can contain multiple elements, such:

<Article> 

At the same time, you can also embed articles in articles:

<Html> 

 

2. section Element

Explanation: it is used to split content in websites or applications. A section element usually consists of a title and content.

Purpose: divide different content blocks.

Section is the segment used for content, for example:

<Article> 

The introduction of the NBA team is a piece of independent content. Therefore, the article element is used, while the introduction of each team is tied with each other and segmentation is required. Therefore, sections are separated.

In fact, even if the articles and sections here are used interchangeably (Article can be seen as a special section.), Mainly to see what this element emphasizes on your current webpage, emphasize independence using article, and emphasize the use of sections in segments.

Visit https://gsnedders.html5.org/outliner/to check that there is no section title in your code structure,Do not use section labels for content blocks without titles.

Note: section is not a common container element. When a container element needs to be directly defined by a style or script, div is recommended.

3. nav Element

Explanation: link group of page navigation

Purpose: page navigation

The nav element is used to wrap page navigation elements, such:

<Nav> <ul> <li> homepage </li> <li> my blog </li> <li> Forum </li> ..... </ul> </nav>

Note: Do not use the menu element instead of the nav element.

4. aside Elements

Description: used to indicate the additional information of the current page and article.

Purpose: used for reference, sidebar, advertisement, and navigation bar related to the current page.

Aside has two main usage methods:

1. It is included in the articles as the main content of the corresponding information section. The content can be references and terminology related to the current article.

For example:

<Header> 

 

2. It is used outside the article element as a part of the global information of the page or site. For example, links, advertisements, and other articles.

<Aside> 

 


What is the relationship between the data structure and HTML5 and JavaScript?

The data structure is very important. For software personnel, it is normal to understand it, because there are not many places used in the school, and the data structure is mainly a logical data storage method, if combined with programming instances, you will be much easier, and there is no necessary link with html and js. Hope there is something

How long does it take to learn HTML5, CSS3, and JS?

I am engaged in computer programming. MOOC has a novel and open learning method. If you are interested, you can log on to MOOC!

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.