more suitable for use. Many places also use the selector, broaden their own seeing. The small icon on the left column was originally shown in IMG, and now I have changed to the icon font, which is available online directly through the Icomoon website, and the icon font will easily control the style and size.HeaderID= "header"> Hgroup> H1class= "Site_title">ahref= "Index.html">Website Admina>H1> H2class= "Section_title">Da
container, and Tilegroup,vgroup,hgroup uses different layout subclasses for group; the Skinnablecontainer class has visual content to set the base class for the appearance container, and its common subclass has a panel. Bordercontainer,navigatorcontent (for the Navigator container), Titlewindow (used as a pop-up window).
Layout
Four layout classes: Basiclayout, Horizontallayout, Verticallayout, Tilelayout
Basiclayout (also called an absolute layout)
exists10. Semantic Headers and Footer11. More HTML5 Form FeaturesIE and HTML5By default, HTML5 new elements are rendered inline, but you can use the following method to makeIt is rendered in block mode
Header, footer, article, section, Nav, menu, Hgroup {
Display:block;
}
Unfortunately, IE ignores these styles and can fix them like this:
Document.createelement ("article");
Document.createelement ("footer");
Docu
No mistake. Old browsers are not aware of these new tags so all are used in line elements to solve the problem, so, there is a solution to the breakthrough is to make it a block element will not be in the same row, so that the old and new browsers can show the same effect, and the browser to identify the tag, New tags are required, the specific solution is:IE8/IE7/IE6 supports tags generated through the Document.createelement method, which allows these browsers to support HTML5 new tags, as foll
provisions, only in the footer to put some copyright, law-related information. Others are not recommended to be put in the footer.13Header> Hgroup> H2>This is somethingH2> h4>This is another somethingh4> Hgroup> P>Even I ' m not a title, I Wanna is hereP>Header>14 W3school said, does not really insert a picture, but just link a picture, the meaning of this tag is to create a file pla
. createElenment ("......")!
The Code is as follows:
(Function (){Var element = ['header', 'footer ', 'Article', 'aside', 'region', 'nav', 'menu ', 'hgroup', 'details ', 'did', 'figure ', 'figcaption'],Len = element. length;While (len --){Document. createElement (element [I])}})();
This is just a simple creation of several typical html5 tags, so that they can become tags in IE6 \ 7 \ 8.
Someone has already written a complete js file, and you onl
This cssreset was modified based on EricMeyers, and the initialization style of the corresponding tag was adjusted for html5. This css reset was modified based on Eric Meyers's CSS reset, and the initialization style of corresponding labels was adjusted for html5.
/*
Html5doctor.com Reset Stylesheet
V1.4
2009-07-27
Author: Richard Clark-http://richclarkdesign.com
*/
Html, body, p, span, object, iframe,
H1, h2, h3, h4, h5, h6, p, blockquote, pre,
Abbr, address, cite, code,
Del, dfn, em, img, in
,figure,footer,header,hgroup,menu,nav,section,summary,time,mark,audio,video{margin:0;padding:0;border:0;font-size:100%;Font:inherit;Vertical-align:baseline;} Make the HTML5 element into a block-level element in the old version of IE:The following code makes the HTML5 roundness a block-level element, but not all HTML5 elements need to be shown as block-level elements.The following are the block-level elements in HTML5:article,aside,details,figcaption,
on the page must be added to the Header element of the page, because IE browser must know this element before parsing the element, this JS file cannot be called at the bottom of the page.
This HTML5 JS file is provided by the author on the Google Code project for direct calls. Of course, if you think this will affect your webpage opening speed, you can download HTML5 JS files and upload them to your server for separate calls.
The following is the code in the HTML5 JS file:
(
Function
(
can be output here #}
Next we will create a CSS style sheet web/css/screen.css, adding the following content.
Html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite, Code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li, Fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure, Figcaption,footer,header,hgr
structure is ambiguous. Add a lot of structural elements to make the document structure clearer and more semantic.
The functionality of the Web application has been limited. Provides a new API for a variety of Web applications, typically including multimedia playback, making it possible to implement rich Web applications.
HTML5 New structure elements
Section,article,aside,header,hgroup,footer,nav,figure.
Additional e
In the overall layout of the time, the specific method can be used.1. Outline: The structure of each content block in the document.Content blocks can use heading elements to show the titles of content blocks at all levels.The layout of content blocks can be divided into "show orchestration" and "implicit orchestration".Display Orchestration: explicitly use elements such as sections to create a document structure, using headings (H1-H6, hgroup) within
@charset ' Utf-8 ';/*css reset*/body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,code,form,fieldset,legend,input, Textarea,p,blockquote,th,td,a,b,em,i,strong,html,article,aside, details, figcaption, Figure,footer, header, Hgroup, menu, Nav, section{margin:0;padding:0;} /* internal and external margins are 0*/table{border-collapse:collapse;border-spacing:0;}/ * Table merge border */fieldset,img{border:0;} /* will group the form element border, picture
New document type, XHTML1.0 declaration file type,
You do not need to specify type properties
Add Header,footer Tags
Add Hgroup Tags
Add highlight Tag Mark
Add
Redefine Small Tags
Increase placeholder to indicate placeholder for text
Required the necessity of explaining attributes
Autofocus Auto Focus Properties
Audio Render video, Firefox uses OGG format, WebKit requires MP3 format
No video decoder specified in vide
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.