Question:
What is the difference between HTML and JavaScript?
hilman hussaini
2012-11-23 01:21:58 UTC
Anyone can explain about the difference between HTML and JavaScript?
Five answers:
Teoma
2012-11-23 01:42:35 UTC
HTML is a static code, it won't do anything like move objects, check form data (HTML5 excluded) it is only used to tell the browser what it wants to show and where to put it, all you see with HTML is a boring static page that won't change, this is only really true if you don't include CSS to defined the appearance of your page though, as most; if not all websites use CSS alongside HTML to make them appear more visually pleasing.



Javascript is a language used for when you may want to have events on the HTML pages, like mouseOver, form input actions or to popup alerts to tell the user something has happened. even changing parts of a page to save reloading the page (AJAX)



With HTML5; HTML, Javascript and CSS could almost be classed as the same thing as they go hand-in-hand in making a good web page, leaving one of those out would make the site less appealing and outdated.
Pro Graphics
2012-11-23 09:25:41 UTC
Simply put: HTML is the programming language used to build a website. JavaScript is the programming language added into HTML that provides a particular JavaScript function for whatever the JavaScript code was written to do on the website.
Cody
2012-11-23 09:27:40 UTC
html is what makes up the website, all the stuff thats on the bottom and top of the page, thats html, html is static, it doesnt change. If you want something to change in your web page you have to use some other language, usually javascript, this box im typing this answer in and the one that you typed your question in is javascript most likely, java script makes something dynamic, it changes. Time stamps on websites are often done with a clock in java.
yesctyr
2012-11-23 09:48:17 UTC
HTML is server-side scripting and the opposite of server-side is client-side. JavaScript is client-side scripting which means you run the JavaScript code on your computer or device while the calling of the web page is from a server. A server can be on your own computer if you install one like xamp or uni-server. PHP, Perl and HTML are all server-side languages. However when they talk about HTML5 and CSS3(which is helper code and sometime stuck in its own file) the big new changes are in the new JavaScript functions that came about with it more than anything else. AJAX and Jquery are both JavaScript too. Java programming language is more like C++ and harder to learn than JavaScript - All full of Classes(specialized functions) you write yourself or make use of the ones others wrote. C++, Java and Assembly languages are more difficult to program with but much faster than higher level languages like PHP PYTHON or Basics
Bico
2012-11-23 09:38:22 UTC
HTML is markup language (not a programming language).


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...