HTML5 learn A

Source: Internet
Author: User

1. Most browsers implement features

    • Canvas
    • Cross-document Message Delivery
    • Geolocation
    • Audio and video
    • Forms
    • MathMl
    • Microdata
    • Server-send Events
    • Scalable Vector Graphics (SVG)
    • Websokect APIs and protocols
    • Web Origin Concept
    • Web Storage
    • Index Database
    • App cache (offline web App)
    • Web Workers
    • Drag and drop
    • XMLHttpRequest Level 2

2. New DOCTYPE and character sets

Original <! DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 transitional//en" "Http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd ">

New <! DOCTYPE html>

Originally <meta http-equiv= "Content-type" content= "text/html; Charset=utf-8 "/>

New <meta charset= "Utf-8"/>

3. Introducing new elements

Header footer section Aside Nav article can be included with each other

  

4. Use the Selector API to simplify the selection operation

Original: document.getElementById ();d ocument.getelementbyname (); Document.getelementbytagname ();

NEW: Document.queryselector ();d Ocument.queryselectorall ()

eg. Querying the Class,document.queryselector ('. Contaner ') of a container, querying all Document.queryselectorall ('. Container '), multiple results, sub-grid

6.window. Json

Contains two methods: the JSON string parse () parses into a DOM element, and the DOM element Stringify () is serialized into JSON; Parse (), stringify ()

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.