Compare HTML and HTML5

I studied the tools that a front-end developer should know. Now I'm focusing on HTML, and I have some questions that are listed below:

  • Since HTML5 is better than HTML and offers new tags such as title, nav, article, etc., why don't all of them use it?
  • Why are there still old tags? Or do I prefer to use HTML5 tags or use HTML tags?
  • What features does HTML5 offer me at all?
  • Is HTML5 supported for all browsers?

Do you have any comments, answers to these questions?

Thanks in advance.

+7
html html5 frontend
source share
3 answers
  • Not everyone uses them, because not every browser supports them. Most modern do browsers support HTML5, but there are still a lot of people on the Internet who use older, outdated browsers. Fortunately, some HTML5 tags have fallback options in which unsupported browsers load different tags depending on who is viewing them.

  • Old tags are still around because they are still an important part of the HTML structure. Many websites rely on these "old" tags to continue to function, and therefore turning them off will break many websites. There is nothing wrong with the "old" tags, and it all depends on your implementation and audience. Think of HTML5 as a complement to the HTML family, not a replacement

  • HTML5 offers interesting new tags, such as <canvas> , <video> , <audio> and much more, to bring the HTML language in line with modern times. Find out more about this on W3 here: http://www.w3schools.com/html/html5_intro.asp

  • HTML5 is supported for most modern browsers. You can see them here: http://html5test.com/results/desktop.html

+12
source share

I agree with Shen. HTML5 is not a replacement for HTML, but an addition. As far as I understand, HTML5 offers a more semantic approach to markup coding for a website. In addition, HTML5 has more features such as sound, sound, canvas, video, and is very animated. If you want to use old HTML tags, you can do this.

But, if you want to keep something more semantically accurate, use HTML5 tags such as <header>, <footer>, <aside> , etc. HTML5 is still under development, so it will be supported by all browsers for some time. However, you can already use many HTML5 and CSS3 elements if you use a framework like Bootstrap, and it works pretty much in many browsers (with the exception of the infamous IE).

+1
source share

HTML5 is supported by every modern browser. HTML5 is the successor to HTML4, it's just the latest HTML. HTML5 offers a lot of things, see here, for example: http://www.html5test.com/ This website also tells you what features your browser supports.

One great thing about HTML5 is the ability to display animations and videos without a plugin.

0
source share

All Articles