Introduction to HTML5, CSS3 and responsive design

Source: Internet
Author: User

First, the definition of responsive design

  Combine three existing development techniques (elastic grid layouts, elastic images, media, and media queries) and name them as responsive web design. The true responsive design approach is not just about changing the layout of the page based on the viewport size. Instead, it is going to subvert our current

Methods for designing Web pages. We used to do a fixed-width design for the desktop, then zoom it out and rearrange the content for small screens, and now we should design for the small screen and gradually enhance the design and content (progressive enhancement) for the big screen.

Ii. H5 and CSS3

HTML5 provides more semantic tagging, reduces page load times, H5 greatly improves page interactions such as form submissions, reduces complex JS code, and allows us to create more concise and fast code;

CSS3 is an additional modular construction, not a standard. It won't break anything in the browser that can't parse it

CSS3 's media query is an integral part of responsive design, and its other functions such as gradients, projections, fonts, animations, and transformations are simpler than JS.

Third, commissioning test

1. Change the browser window size to complete most tests

2. Third-party plug-ins and browser extensions are available that allow you to set the current browser window or viewport to a specified pixel. If necessary, you can also automatically toggle the current browser window or viewport into the default size, such as 1024x768 pixels. This allows you to easily test site effects on different screen viewport sizes.

 Note : In a responsive web design, do not crush pixel (px) units and use relative units of measure (em or percent).

The viewport refers to the content area within the browser window, and does not include toolbars, tab bars, etc., which are the areas where the page is actually displayed;

Screen size refers to the physical display area of the device

Introduction to HTML5, CSS3 and responsive design

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.