1.

What are the different ways to add Scripts to a web page?

Answer»

The three different ways to add Scripts as follows

1. Inside <BODY> section: Scripts can be placed inside the <BODY> section.

2. Inside <HEAD> section: Scripts can be placed inside the <HEAD> section. This method is widely accepted method.

3. External (another) JavaScript file 

We can write scripts in a le and save it as a separate le with the extension .js. The advantage is that this le can be used across multiple HTML les and can be enhance the speed of page loading.



Discussion

No Comment Found