Home >Web Front-end >HTML Tutorial >What is the difference between HTML5 and HTML4
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.
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 .
2.html5 adds the
3.html5 adds many new tags, such as
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!