Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Compare HTML and HTML5

Tags:

html

frontend

I've been making research about the tools that a front end developer shall know. Now, I'm focused on HTML and I have some questions that are listed below:

  1. Since HTML5 is better than HTML and offers new tags such as header, nav, article, etc. why not everybody is not using them?
  2. Why there are still old tags? Or Should I prefer to use HTML5 tags or keep using HTML tags?
  3. Which opportunities does HTML5 offers me at all?
  4. Does HTML5 is supported for all of the browsers?

Do you have any comments, answers to those questions?

Thanks in advance..

like image 294
ankakusu Avatar asked Aug 10 '13 17:08

ankakusu


People also ask

What is the difference between HTML vs HTML5?

Key Difference Between HTML vs HTML5. Below are the most important Difference between HTML vs HTML5. In HTML video and audio are not supported whereas in HTML5, video, and audio are integrated into it. HTML is compatible with almost all the browsers whereas HTML5 is supported by most of the modern browsers such as Firefox, Mozilla, and Chrome etc.

What is the difference between audio and video in HTML5?

Audio and video are not HTML parts whereas audio and video tags are supported in HTML5. In HTML, Web Socket is not available, on the other hand in HTML5 you can establish full-duplex communication channels with a server using Web Sockets.

What is the difference between HTML5 and <table> tag?

HTML is unable to handle inaccurate syntax and other errors, whereas HTML5 is capable of handling the errors. In HTML5, <table> tag can have only one attribute border, and the value needs to be zero or one, whereas, in HTML, we can have many attributes.

What is the HTML5 markup language?

HTML5 is a markup language that is the fifth and latest major version of HTML. It includes newly added features, tags, and elements. HTML does not provide native audio and video support.


2 Answers

  1. Not everyone is using them because not every legacy browser supports them. Most modern browsers do support HTML5 but there are still lots of folks on the internet that are using old, outdated browsers. Fortunately, some HTML5 tags have fallback options in which non-supported browsers load different tags depending on who is viewing them

  2. Old tags are still around because they are still a crucial part of the HTML structure. Lots of websites rely on these "old" tags to still function and so taking them out would break a lot of websites. There is really nothing wrong with "old" tags and it all depends on your implementation and audience. Think of HTML5 as an addition to the HTML family and not a replacement

  3. HTML5 offers cool new tags such as <canvas>, <video>, <audio>, and more to bring the HTML language more in-line with modern times. Check out more about it at W3 here: http://www.w3schools.com/html/html5_intro.asp

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

like image 185
Shaun Avatar answered Oct 05 '22 09:10

Shaun


I agree with Shaun. HTML5 is not a replacement for HTML, but an addition. To my understanding, HTML5 offers a more semantic approach towards coding the markup for a website. Also, HTML5 features more features such as sound, audio, canvas, video and greatly supports animation. If you wish to use the older HTML tags, you may do so.

But, if you wish to keep things more semantically accurate, use the HTML5 tags like <header>, <footer>, <aside> etc. HTML5 is still under development so it will be some time till all browsers support it. However, you might already be using plenty of HTML5 and CSS3 elements if you are using a framework like Bootstrap and it pretty much works on many browsers (except for infamous IE).

like image 39
Ali Gajani Avatar answered Oct 05 '22 09:10

Ali Gajani