Take the 2-minute tour ×
Programmers Stack Exchange is a question and answer site for professional programmers interested in conceptual questions about software development. It's 100% free.

I'm pretty new to the web development scene, and I just want to be absolutely clear on this because I've read a few conflicting statements.

I was under the impression that "html5" is a particular way of constructing xml to represent data for a webpage and "javascript" is a programming language that runs as client-side code in the browser. But left and right I see APIs for javascript (workers, geolocation, local storage, etc.) being referred to as an "html5 technology". Wikipedia says that html5 doesn't have a standard yet, so I can't look it up to see if it somehow mandates stuff about javascript.

So will APIs for javascript somehow be apart of the html5 standard? Or has it become a common bad practice to label javascript APIs "html5 technology"?

share|improve this question

closed as primarily opinion-based by gnat, MichaelT, GlenH7, Dan Pichelman, ratchet freak Sep 16 '14 at 14:39

Many good questions generate some degree of opinion based on expert experience, but answers to this question will tend to be almost entirely based on opinions, rather than facts, references, or specific expertise. If this question can be reworded to fit the rules in the help center, please edit the question.

Just a technicality - HTML5 does not have to be valid XML, e.g. the <br> tag (without close), is perfectly valid in HTML5, but not in XML. –  Daniel B Mar 26 '12 at 6:09
HTML5 is a really bad name. In the end it is more about standardizing common existing stuff from web browsers that were not in a standard yet. This ranges from the parsing algorithm for malformed HTML to Javascript APIs to things like video and so on. –  hugomg Mar 26 '12 at 13:23
The official HTML 5 specification (or 'recommendation') was published by the W3C on 28 October 2014 - Web APIs and scripting are covered in Chapter 6: w3.org/TR/html5/webappapis.html#webappapis –  cachvico Jul 9 at 6:03

1 Answer 1

up vote 7 down vote accepted

It's not a standard yet, but you can read the draft specification on the W3 web site. Javascript/Ecmascript is part of section 6.1.6: Events.

share|improve this answer
Javascript is also explicitely mentioned in 6.1.6, "Events", thus making it an integral part of HTML5. –  user281377 Mar 26 '12 at 6:09
@ammoQ thanks for the correction. I've updated my answer. –  Charles E. Grant Mar 26 '12 at 6:51

Not the answer you're looking for? Browse other questions tagged or ask your own question.