What is the difference between HTML5 and HTML? Summary of four differences between HTML5 and HTML

Source: Internet
Author: User
What is the difference between HTML and HTML5? Believe that a lot of friends have this question, then, the following this article PHP Chinese network to give you a detailed introduction about the difference between HTML5 and HTML, so that you can see at a glance.

First, let's take a look at what is HTML? What is HTML5?

1. What is HTML?

According to the definition of the web, we can tell that HTML refers to Hypertext Markup Language, which is not a programming language, but a language that uses tag tags to describe a page.

Here is just a brief introduction of the definition of HTML, if you want to learn more HTML content you can take a look at this article: What is HTML, I think the article can not be hard to go to the PHP Chinese Web HTML Video Tutorial section to learn.

2. What is HTML5?

From the Baidu Encyclopedia we can know that HTML5 is the core language of the World Wide Web, the standard Universal Markup Language, the application of Hypertext Markup Language (HTML) of the fifth major changes. This is just a simple definition, so what if you dig deeper into what HTML5 is? You can take a look at this post: what is H5? 5 minutes to fully understand what the HTML5 page is,

Of course, you can also go to the PHP Chinese web HTML5 video Tutorial section to learn the course.

After reading the simple introduction of HTML5 and HTML, we came to the point, to say the difference between HTML5 and HTML.

What is the difference between HTML5 and HTML?

The difference between HTML5 and HTML 1: The difference between document declarations

HTML:

<! DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 transitional//en" "Http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd ">

HTML5:

<! DOCTYPE html>

As can be seen from the above, in the document Declaration, HTML has a long code, not easy to remember, and HTML5 is different, only a simple statement, which is also convenient for people's memory.

The difference between HTML5 and HTML 2: structural semantics

There are no structural semantic tags in html, and we usually do so by naming the <id= "header"; This represents the head of the Web site.

HTML5 deleted some outdated tags on the basis of HTML, and added some semantic tags, such as:

The difference between HTML5 and HTML 3: page effects

HTML does not implement some good-looking web page effects, or a complex code can be implemented.

HTML5 in the new canvas, SVG, video tags, audio tags, so that previously can not be achieved through HTML page effect, or need to use flash, complex JS to achieve the effect now with a simple HTML5 can be achieved.

The difference between HTML5 and HTML 4: Object-oriented

HTML5 is the fifth-generation HTML standard, primarily for the mobile world.

Both the HTML and pre-HTML5 versions are PC-side based.

Iii. Summary

In fact, for the difference between HTML and HTML5, in short, there are some things, less things, HTML and HTML5 more differences or need you in learning to slowly discover, Here I would recommend a lesson on HTML and HTML5 (learn HTML video tutorials with the fingertips and the lone nine-base (1) _HTML5 video tutorial)

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.