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