The difference between HTML5 and HTML:
1. On the document type declaration
html:<! DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 transitional//en" "Http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd ">
html5:<! DOCTYPE html>
2. In structural semantics
HTML: There is no structure semantic label, we are usually named <div id= "header" ></DIV> This represents the head of the Web site.
HTML5: There is a great advantage in semantics. Provides a number of new semantic tags, such as:
HTML5 Common structure Tags: article,aside,figcaption,figure,footer,header,hgroup,nav,section,time
The <article> tag defines the external content, which can be a new article.
<aside> tags define content other than article, and aside content can be used as the sidebar for the article.
The <figcaption> tag defines the caption of the figure element.
The <figure> tag is used to group elements, using the figcaption element to add headings to the element groups.
The <footer> tag defines the section or footer of the document.
The
<nav> tags define the part of the navigation link.
<section> tags define the sections (section, section) in the document. such as chapters, headers, footers, or other parts of the document.
The <time> tag defines the date or time, or both.
HTML5 Advantages:
1. Network standards
2. Multi-device cross-platform
3. Self-adapting web design
4. Instant Updates
cons : The standard is not well supported by the browser. Due to the introduction of new tags, there is a lack of a unified data description format between browsers, resulting in poor user experience.
Talking about HTML5