What is the difference between HTML5 and other HTML?

1993 Readings

HTML5, It is what we usually call H5. Now H5 is so popular that non-technical people mistakenly think H5 is a new language.

In fact, HTML5 is only the fifth version of HTML, just as iPhone x is a version of iPhone.

The reason why H5 has been mentioned a lot in recent years is that this version has deleted and modified many elements, making HTML a new "upgrade". Just like the iPhone added face brushes and Siri.


What is the difference between HTML5 and other versions of HTML? The main differences are as follows:


1、 Document declaration difference

The type declaration of the HTML document is:

<! DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" " http://www.w3.org/TR/html4/strict.dtd ">

//Or<! DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" " http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd ">


HTML5 document type declaration is:

<! DOCTYPE html>

Document statement HTML5 is easy to write, concise, and conducive to rapid reading and development by programmers.

We can identify whether the page is HTML5 by viewing the statement of the web page source code.


2、 Structural semantic differences

Html: tags that do not reflect structural semantics, such as<div id="nav"></div>

Html5: Added many semantic tags, such as:<article>,<aside>,<audio>,<bdi>

Compared with the previous version of HTML, HTML5 has added and modified some elements.


3、 Syntax processing

HTML cannot handle inaccurate syntax; HTML5 can handle inaccurate syntax.


4、 More powerful drawing function

HTML: refers to scalable vector graphics, which is used to define vector based graphics of the network.

HTML5: The canvas element of HTML5 uses script (usually JavaScript) to draw an image on a web page, which can control every pixel of the canvas.


5、 Audio and video support

If HTML does not use Flash player support, it does not support audio and video. HTML5 uses<audio>and<video>tags to support audio and video control.


Recommended reading:

Advantages of using HTML5 to build a website


This article is written by Fuwei SEO Special Training Camp Edit and organize.

Search outside and focus SEO training And Saas service solutions around SEO. Over the past 10 years, more than 50000 students have gained technical improvement and contacts here.

SEO courses include mobile search, zero foundation station building, group station SEO thinking, Sowai 6 system, introduction to SEM, etc.

The registration time for Class B 190 is from May 15 to May 31. Please add enrollment customer service Xiaomo WeChat: seowy2021. WeChat code scanning to add customer service personnel

Our goal is to make it easy for non-technical personnel to learn Internet technology.

  • SEO exchange group of search members (free)

    WeChat code scanning to add customer service personnel
  • Applet operation communication group (free)

    WeChat code scanning to add customer service personnel
  • SEM bidding exchange group of search members (free)

    WeChat code scanning to add customer service personnel
  • Fuwei Student SEO Exchange Group (VIP)

    WeChat code scanning to add customer service personnel

Scan code to obtain resources

WeChat code scanning to add customer service personnel
  • SEO technology practice WeChat group

    WeChat code scanning to add customer service personnel
  • Major station traffic director group (review identity)

    WeChat code scanning to add customer service personnel
  • Google independent station English SEO group

    WeChat code scanning to add customer service personnel
  • SEO Team KPI Management Form

    WeChat code scanning to add customer service personnel
  • Friendly link group of industrial products website

    WeChat code scanning to add customer service personnel
  • Local life service industry friend chain group

    WeChat code scanning to add customer service personnel

Follow Mr. Fu Wei System learning group station SEO
become Internet operation and promotion masters

Master SEO skills, build the front end of the site, dominate the screen by groups of sites, get started with SEM, promote news sources
Processed in 0.132750 Second ,  38 querys.