HTML5 vs JavaScript

html, javascript

Solution

I think it would be better to say that they are not competing technologies instead they are both complementary technologies. HTML provides the primary structure (and layout to a degree) of a website wheres JavaScript provides the majority of the interactivity.

No web page can be made without the help of HTML. And Javascript provides the interactivity.

But when I try to find more about them, it's all related to HTML5.

Yes that is true as mikerobi explained in this related question that Javascript is referred as HTML5 technology and HTML5 is the next generation of HTML.

The wiki has few points for HTML5 which are good to be listed:

Markup

There is also a renewed emphasis on the importance of DOM scripting (e.g., JavaScript) in Web behavior.

New APIs

In addition to specifying markup, HTML5 specifies scripting application programming interfaces (APIs) that can be used with JavaScript.[36]

Also you will find that Either JavaScript or CSS3 is necessary for animating HTML elements. Animation is also possible using JavaScript and HTML

Problem

Before anyone loses their mind that I'm "comparing" those two, please hear me out first. So, I'm quite interested in the new wonderful features that are available recently, with the help of new standards: localstorage, sessionstorage, geolocations, offline web applications, History API etc. Now, as it can be clearly seen, most of these features are accessed via JavaScript. But when I try to find more about them, it's all related to HTML5. So, this is why I'm asking, am I not understanding something correctly or are the two terms being widely mixed?

Original source

Related problems