©2018  LUVCODING                             

HUDDERSFIELD

UK

luvcoding
  • Grey Facebook Icon
  • Grey Twitter Icon
  • Grey Google+ Icon
  • Grey YouTube Icon
  • Grey Pinterest Icon
luvcodings.com

Introduction to JavaScript

****************JAVASCRIPT AND HTML ELEMENT*********************

JavaScript is a very powerful  scripting language,  used mainly for enhancing user's interaction  with a web page. You can make your web page interactive and more lively, with the help of JavaScript. JavaScript is also widely used in game development and Mobile application development.

JavaScript cannot run on its own,because it is a scripting language, rather,  browsers are used for running the code. When you requests an HTML page with JavaScript in it, the script is sent to the browser and  executed by the browser.

You will need a text editor to write your code and a browser to display the web pages you develop. Any text editor of your choice can be used including Notepad++, Visual Studio Code, Sublime Text, Atom or any other text editor you are comfortable with.

 

For browsers,  any web browser including Google Chrome, Firefox, Microsoft Edge, Internet Explorer etc. can run JavaScript.

.

•HTML tag

•An HTML tag is just an opening or closing entity. For example:

•<p> and </p>

•HTML element encompasses opening tag, closing tag, content (optional for content-less tags) Eg:

•<p>This is the content</p>

•JAVASCRIPT PROVIDES THE SCRIPT

•HTML Elements

HTML elements are individual component of an HTML document or web page, composed of a tree of HTML nodes, such as text nodes. Each node can have HTML attributes specified.

 

The Nodes can also have content, including other nodes and text

Related