Home >Web Front-end >HTML Tutorial >What is the difference between HTML5 and HTML4

What is the difference between HTML5 and HTML4

云罗郡主
云罗郡主Original
2018-11-28 14:40:2416102browse

What is the difference between HTML5 and HTML4? What do html5 and html4 have in common? Newbies who are just getting started may not understand these issues, so let’s summarize them below.

What is the difference between HTML5 and HTML4

1: What is the difference between HTML5 and HTML

1. Simplification of syntax. Compared with html4, the newly launched html5 is What is more popular is that the introduction of HTML5 has simplified the syntax. For example, for the doctype in the header, we only need to write .

What is the difference between HTML5 and HTML4

2.html5 adds the tag. The tag replaces flash. Many times, if we put a lot of flash in a web page, It is very unfriendly. Now you only need to use the tag to create interactions and realize many flash functions.

3.html5 adds many new tags, such as

and
tags, which are beneficial to the structure of web pages. The and
tags can create traditional menus. The

What is the difference between HTML5 and HTML4

4.html5 also deletes the b tag and font tag. If you want the effect, you can use css strips to replace these two tags.

2: What htlm5 and html4 have in common

The file extension and content attributes in html5 are consistent, and meta tags can be used in both html4 and html5. Set the encoding of the file. The use of mate cannot be mixed. From html5 onwards, we are required to use UTF-8 for encoding of files.

The above is a complete introduction to the difference between HTML5 and HTML4. If you want to know more about Html5 tutorial, please pay attention to php Chinese website.


The above is the detailed content of What is the difference between HTML5 and HTML4. For more information, please follow other related articles on the PHP Chinese website!

Statement:
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

Related articles

See more