How to insert javascript in html?



How to insert javascript in html?..

Answer / Ankush Sharma

JavaScript can be inserted into HTML using the '<script>' tag. JavaScript code can be placed either inside the '<script>' tag within the head or body section, or as an external file linked with a '<script src="filename.js">' tag.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More HTML DHTML Interview Questions

What is ul and li in html?

1 Answers  


What is the use of <table> tag?

1 Answers  


How do you play tag?

1 Answers  


What is meta tags in html?

1 Answers  


How to create mailto link in html

1 Answers  


What are the drawbacks of cookies?

1 Answers  


In my PC has virus How to remove viruse?

1 Answers  


What is tag in ela?

1 Answers  


What is queryselector?

1 Answers  


What are keywords in seo?

1 Answers  


Can you change the color of bullets?

1 Answers  


How to utilize a server-sent event in HTML5?

1 Answers  


Categories