Summary of HTML5 new features and html5 New Features

Source: Internet
Author: User

Summary of HTML5 new features and html5 New Features

New HTML5 features


  1. New DocType: <! DOCTYPE html> document type does not need to be declared;
  2. The type attribute is not required for scripts and links, such as lingk and script;
  3. Semantic tags, such as header, footer, hgroup, mark, figure, small, article,
  4. Attribute and verification,
    1. New attributes, such as placeholder, required, autofocus, pattern, autocomplete, data, contenteditable
    2. Automatic verification, such as: required automatic verification is empty, pattern regular match, min, max maximum value
    3. Refined, such as text classification type = [numner \ range \ date \ color \ search \ emial], datalist, list
  5. Audio and video,
    1. Audio support: audio attr = [autoplay \ controls], firefox's .oggformat, webkit的.mp3, opera's .wav
    2. Video Support: video attr = [controls \ preload], safari and IE in H.264 format (MPEG4), Firefox and Opera in theora \ vorbis format (OGG), WebM
  6. Image canvas, filltype, stroketype, drawimage, pixel imagedata, context text writing
  7. Offline storage, localstorage [long-term], sessionstorage [current session]

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.