HTML vs. JavaScript
- HTML is an acronym which stands for Hyper Text Markup Language. It is used to tell a Web browser such as Internet Explorer, Firefox, Safari or Google Chrome how a Web page and its contents should look. HTML pages are built from tags that give instructions to the browser. For example the <p> tag tells a Web browser to begin a new paragraph and the </p> tag tells it when the paragraph ends. Only text that appears between tags will be displayed on the browser. Different tags will tell the browser which fonts to use, what color the text should be, whether it should be large or small, bold or italicized and more. Standard HTML is not case sensitive, which means that the tags can be written in either upper, or lowercase letters. This is not the case with XHTML which is designed for use with other programming languages and requires all text to be lowercase.
- JavaScript is not, as it might appear, the same as Java, which is a very complex programming language. JavaScript is a scripting language, which means it is used to complete simple and interactive functions in Web pages. For example, if a user posts a comment on a blog or a news story, it is typically JavaScript code that retrieves the date and time from the server and adds it to the comment. Javascript is always case sensitive, capitalizing a word that is supposed to be lowercase will cause an error on the Web page.
- HTML and JavaScript will typically both be used on every Web page. The JavaScript handles interactive objects and the HTML tells the Web browser where the objects should go on the page and, in some cases, how they should look. For example the code document.write("<h1>" time "</h1>") tells the Web browser to display the time. The JavaScript code "document.write" tells the browser to display something, the word "time" tells the JavaScript what should be displayed and the tags <h1> and </h1> is HTML code that tells the browser to apply a specific font definition to the time that is displayed.
- HTML was the original language of the World Wide Web. It was originally developed CERN, the European Laboratory for Particle Physics in Geneva, Switzerland in 1989 by Tim Berners-Lee who was also the inventor of the World Wide Web (WWW). The WWW was originally envisioned as a way for individuals to share text documents. JavaScript was originally is also known as ECMAScript and was invented by Brendan Eich at Netscape, one of the original web browswers, for the launch of Netscape version 2.0 in 1996.
HTML
JavaScript
Combining
History
Source...