The second chapter HTML elements and common understanding
One, HTML Overview
1.1, HTML common elements
The left is not set the viewport, set the right viewport will be in accordance with the screen size to load.
1.2, HTML attributes important
a label by default in the current window, if the need to open a new window is provided below.
form property can be acquired in the form of content and used in conjunction with some js validation plug-in, it will be very convenient.
Such as access to content in the form attributes, reset the form to fill in a form of content, etc.
1.2.1, obtain Html page frame
After opening the html page click on the link on this page you can view the page frame.
Web links below, drag directly to the browser collections can be used. Hold down the left mouse button and drag the contents of the red box below.
Gets Html page architecture
1.3, HTML version
1.4, HTML elements default style
the RESET CSS
the Reset CSS
normalize.css
following this approach, relatively simple and crude. Simple is that the code is simple, to the style effects in line with our requirements. Rude that * will make the page load efficiency may not be very good. (However, the basic need to consider this issue, if do not want to study this issue css reset)
1.5, HTML elements classification
By default Belong:
- Block-level block: by default to occupy the entire line;
- Inline inline (mostly with text-related elements): can combine with other elements of the display;
- inline-block (form elements, pull-down elements): the outer layer performance inline; internal performance block;
by content points:
1.6, HTML elements nesting relationship
- Block element may comprise inline elements;
- Does not necessarily block-level elements block elements comprise; (P not contain div)
- Usually the element rows can not contain block element; (A can contain div)
1.7, HTML interview Zhenti
What is the significance doctype? In standard mode rendering; let the browser know the elements of legitimacy;