Javatpoint Logo
Javatpoint Logo

HTML JavaScript

JavaScript is used with HTML to make web pages more attractive, dynamic and interactive.

Example:

Test it Now

HTML <script> Tag

The HTML <script> tag is used to specify a client-side script. It may be an internal or external JavaScript which contains scripting statements.

It is mainly used to manipulate images, form validation and change content dynamically. JavaScript uses document.getElementById() method to select an HTML element.

Example:

Test it Now

Let's see what JavaScript can do:

1) JavaScript can change HTML content.

Example:

Test it Now

2) JavaScript can change HTML style

Example:

Test it Now

3) JavaScript can change HTML attributes.

Example:


Test it Now

HTML <noscript> Tag

HTML <noscript> tag is used to write disabled script in the browser. The text written within <noscript>?.</noscript> tag is not displayed on the browser.

Example:

Test it Now
Next TopicHTML File Path




Please Share

facebook twitter google plus pinterest

Learn Latest Tutorials