In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)05/31 Report--
This article mainly introduces the difference between html4 and html5 what the relevant knowledge, the content is detailed and easy to understand, simple and fast operation, has a certain reference value, I believe you read the difference between html4 and html5 which article will have a harvest, let's take a look at it.
Differences are: 1, the difference in definition, HTML4 is to adapt to the era of pc, HTML5 is to adapt to the era of mobile Internet; 2, the difference between tags, HTML5 code is more concise than HTML4; 3, HTML5 added a variety of elements; 4, HTML5 is more suitable for the requirements of the times.
The operating environment of this tutorial: windows7 system, HTML4&&HTML5 version, Dell G3 computer.
HTML5 has grown at an amazing rate since it was officially launched in 2010, and now most major browsers support HTML5 (except for individual features that are not compatible with browsers), which shows that HTML5 is becoming more and more popular. It can be predicted that HTML5 will become the mainstream technology of web front end in the near future. HTML5 special effects are better suited to the era of mobile Internet and can better support multimedia running on mobile devices.
What's the difference between html5 and html4?
Difference in definition
HTML5 is the fifth modification of Hypertext markup language (HTML), and HTML4 is the fourth modification of Hypertext markup language (HTML). They are the 5th and 4th editions of html, respectively. HTML4 is to adapt to the era of pc, and HTML5 is to adapt to the era of mobile Internet. They are all standard languages recommended by W3C (World Wide Web)
The difference between labels
HTML5 code is more concise than HTML4 code, some new elements and attributes of HTML5 can make web development easier and easier, for example, HTML5 improves API. HTML5 used to have a lot of functionality that had to be implemented by javascript, but now you can use the tag attribute of the HTML5 element. Because of the large number of javascript attributes that can be replaced by HTML5 on web pages, the language becomes easy to understand, and only html4 needs to cooperate with javascript to do so.
New elements
HTML5 adds canvas elements (painting), video elements (media playback), audio elements, new special content elements (article, footer, header, nav, section), form controls (calendar, date, time, email, url, search). For example, div can now be replaced with HTML5 structured tags, which makes the whole page more intuitive and easy to understand.
HTML5 is more suitable for the requirements of the times.
Compared with the pc era, the mobile Internet era is more eager to have a unified standard. Previously, due to the different browsers, the bug caused by modifying browser compatibility wasted a lot of time. In HTML5, video, audio, images, and animation will be standardized, which will solve the headache of browser compatibility.
Differences in marking methods
The HTML5 syntax is mainly different from DOCTYPE (DOCTYPE declaration method:) and specified character encoding (appending charset attribute specified encoding to mate elements) and html4.
This is the end of the article on "what is the difference between html4 and html5". Thank you for reading! I believe you all have a certain understanding of the knowledge of "what's the difference between html4 and html5". If you want to learn more, you are welcome to follow the industry information channel.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.