The script type attribute.
Example:
HTML
<!DOCTYPE html>
<html>
<body>
<h1>The script type attribute</h1>
<p id="demo"></p>
<script type="text/javascript">
document.getElementById("demo").innerHTML = "Hello JavaScript!";
</script>
</body>
</html>
Type: | Html |
Category: | Web Tutorial |
Sub Category: | HTML Attribute |
Uploaded by: | Admin |