The <script> Tag
In HTML, JavaScript code is inserted between <script>
and </script>
tags.
Example
<script>
document.getElementById("demo").innerHTML = "My First JavaScript";
</script>
In HTML, JavaScript code is inserted between <script>
and </script>
tags.
<script>
document.getElementById("demo").innerHTML = "My First JavaScript";
</script>
JavaScript is the programming language of the web.
It can update and change both HTML and CSS.
It can calculate, manipulate and validate data.
JavaScript is one of the 3 languages all web developers must learn :
1. HTML to define the content of web pages
2. CSS to specify the layout of web pages
3. JavaScript to program the behavior of web pages