Home Web Front-end H5 Tutorial Simply organize the basic features and syntax of HTML5_html5 tutorial skills

Simply organize the basic features and syntax of HTML5_html5 tutorial skills

May 16, 2016 pm 03:45 PM
html characteristic grammar

HTML5 Overview
HTML5 is the next major version of the HTML standard, replacing HTML 4.01, XHTML 1.0 and XHTML 1.1. HTML5 is also a standard for structuring and presenting content on the World Wide Web.

HTML5 is the product of cooperation between the World Wide Web Consortium (W3C) and the Web Hypertext Technology Working Group (WHATWG).

This new standard adds features such as video playback and drag-and-drop, which in the past relied on third-party browser plug-ins such as Adobe Flash, Microsoft Silverlight and Google Gears.

Browser support
The latest version of Apple Safari, Mozilla FireFox and Opera support most HTML5 features, and IE9 also supports some HTML5 features.

Mobile browsers pre-installed on iPhones, iPads and Android phones all have good support for HTML5.

New Features
HTML5 introduces many new elements and attributes to help us build modern websites. Here are the main features introduced by HTML5:

New semantic elements: such as

,
and
.

Forms 2.0: Improvements to HTML web forms, introducing some new attributes for the tag.

Persistent local storage: In order not to be implemented through third-party plug-ins.

WebSocket: The next generation of two-way communication technology for web applications.

Server push events: HTML5 introduces events from the web server to the web browser, also known as server push events (SSE).

Canvas: Supports programmatic 2D drawing using JavaScript.

Audio and Video: Embed audio or video in web pages without resorting to third-party plug-ins.

Geolocation: Users can choose to share their geographical location with our web pages.

Microdata: Allows us to create custom vocabularies outside of HTML5 and extend web pages with custom semantics.

Drag and drop: Drag and drop items on the same web page from one location to another.

Backwards Compatibility
HTML5 is designed to be as backwards compatible with existing browsers as possible. New features build on existing features and allow us to provide fallback content for older browsers.

It is recommended to use a small amount of JavaScript code to detect support for individual HTML5 features.

HTML5 syntax

HTML5 has "its own" HTML syntax that is compatible with HTML 4 and XHTML1 documents already published on the web, but is not compatible with the more complex SGML features in HTML 4.

HTML5 does not have the syntax rules in XHTML that require lowercase tag names, quote attributes, attributes must have a value, and all empty elements must be closed.

But HTML5 is more flexible and supports the following forms:

Capitalize tag names.
Double quotes for attributes are optional.
Attribute value is optional.
Closing empty elements is optional.
DOCTYPE
In old versions of HTML, DOCTYPE is very long because the HTML language is based on SGML and needs to reference a DTD.

HTML5 authors can use a simple syntax to specify a DOCTYPE of the form:

XML/HTML CodeCopy content to clipboard
  1. >

The above syntax is not case sensitive.

Character Encoding
HTML5 authors can specify the character encoding using a simple syntax as follows:

XML/HTML CodeCopy content to clipboard
  1. <meta charset="UTF-8"> 

The above syntax is not case sensitive.

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

Table Border in HTML Table Border in HTML Sep 04, 2024 pm 04:49 PM

Guide to Table Border in HTML. Here we discuss multiple ways for defining table-border with examples of the Table Border in HTML.

Nested Table in HTML Nested Table in HTML Sep 04, 2024 pm 04:49 PM

This is a guide to Nested Table in HTML. Here we discuss how to create a table within the table along with the respective examples.

HTML margin-left HTML margin-left Sep 04, 2024 pm 04:48 PM

Guide to HTML margin-left. Here we discuss a brief overview on HTML margin-left and its Examples along with its Code Implementation.

HTML Table Layout HTML Table Layout Sep 04, 2024 pm 04:54 PM

Guide to HTML Table Layout. Here we discuss the Values of HTML Table Layout along with the examples and outputs n detail.

HTML Input Placeholder HTML Input Placeholder Sep 04, 2024 pm 04:54 PM

Guide to HTML Input Placeholder. Here we discuss the Examples of HTML Input Placeholder along with the codes and outputs.

Moving Text in HTML Moving Text in HTML Sep 04, 2024 pm 04:45 PM

Guide to Moving Text in HTML. Here we discuss an introduction, how marquee tag work with syntax and examples to implement.

HTML Ordered List HTML Ordered List Sep 04, 2024 pm 04:43 PM

Guide to the HTML Ordered List. Here we also discuss introduction of HTML Ordered list and types along with their example respectively

HTML onclick Button HTML onclick Button Sep 04, 2024 pm 04:49 PM

Guide to HTML onclick Button. Here we discuss their introduction, working, examples and onclick Event in various events respectively.

See all articles