Html5 layout and html5 Layout

Source: Internet
Author: User

Html5 layout and html5 Layout

Before Html5, Div + css is used for layout, but it is related to developers' naming methods and preferences. In the new Html5, the layout is more user-friendly and easier to understand. If the Header, Footer, Section, and Aside labels are added, the corresponding functions are easily known at a glance. The layout effect is as follows:

The elements involved are described as follows: the new semantic elements provided by HTML5 define different parts of the web page:

HTML5 semantic elements

Header

Define the header of a document or Section

Nav

Container that defines the navigation link

Section

Define sections in the document

Article

Define independent self-contained articles

Aside

Define content other than content (for example, sidebar)

Footer

Define the footer of a document or Section

Details

Define additional details

Summary

Define the title of the details Element

 

 

 

 

 

 

 

 

 

 

 

 

Specifically, the Html code for layout is as follows:

1 <! DOCTYPE html> 2 View Code

 

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.