Home > Web Front-end > H5 Tutorial > What are the new features of HTML5? Detailed explanation of new features of HTML5

What are the new features of HTML5? Detailed explanation of new features of HTML5

云罗郡主
Release: 2019-01-04 09:43:32
forward
4675 people have browsed it


#This article brings you what are the new features of HTML5? A detailed explanation of the new features of HTML5 has certain reference value. Friends in need can refer to it. I hope it will be helpful to you. [Recommended tutorial: Html5 tutorial]

1: New features

More semantic elements. article, footer, header, nav, section

Localized storage. localStorage and sessionStorage

Offline application, offline caching. manifest

Drag and release API. Drag and drop

Media playback. video and audio

Enhanced form controls. calendar, date, time, email, url, search

Geographical location. Geolocation

Multi-tasking. webworker

Full-duplex communication protocol. websocket

History management history

Cross-domain resource sharing (CORS) Access-Control-Allow-Origin

Page visibility change event visibilitychange

Cross-window Communication PostMessage

Form Data Object

Painting: canvas

2: What elements have been removed by HTML5?

Purely expressive elements: basefont, big, center, font, s, strike, tt, u

Elements that negatively impact usability: frame, frameset, noframes

Three: How to deal with the compatibility issue of h5 new tags

First, you can use document.createElement to create new tags

Use the shim html5shiv.js

<!--if lt IE 9]>  
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script> 
<![endif]-->
Copy after login

3: How to distinguish between HTML and HTML5

The obvious difference is the DOCTYPE statement. h5 only needs to write , while the html statement

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
Copy after login

Can be judged based on the new functional elements of h5 such as canvas




##

The above is the detailed content of What are the new features of HTML5? Detailed explanation of new features of HTML5. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:csdn.net
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template