Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Doubts related to html vs html5

Tags:

html

xhtml

Everyone is now talking about HTML5, i dont really understand what is the difference between it and the normal .xhtml

could you please solve some of my doubts:

  • What are the differences?
  • What are the advantages and disadvantages?
  • Is HTML5 considered a markup language or an scripting language?
like image 365
javing Avatar asked Dec 07 '25 10:12

javing


2 Answers

What are the differences?

HTML 5 is just the next version of HTML. It takes HTML 4 and adds more stuff to it (while throwing out a few bits that shouldn't be used and changes the rules on how to parse it (to what browsers have been doing for the last decade anyway)).

What are the advantages and disadvantages?

It lets you do more stuff.

It doesn't have any disadvantages (other than that the new stuff isn't well supported yet).

Is HTML5 considered a markup language or an scripting language?

It is a markup language with a bunch of DOM APIs.

like image 63
Quentin Avatar answered Dec 10 '25 02:12

Quentin


I guess the confusion is that HTML4 and HTML5 don't do much (on their own). You need javascript and css and that is when the party really starts.

When people are talking about HTML5 I guess they are talking about HTML5+ CSS3 + Javascript (compared to HTML4 + CSS2 + Javascript).

For a good example of the adventures you can have in the new world check this out: http://slides.html5rocks.com/

Remember this isn't using .NET or PHP or any thing, its "just" HTML5 + javascript + css

like image 41
Ian G Avatar answered Dec 10 '25 01:12

Ian G