Horje

How to add A script with the type attribute specified - HTML type Attribute

The script type attribute.

index.html
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>

Output should be:

How to add A script with the type attribute specified - HTML type Attribute




Type:
html
Category:
Web Tutorial
Sub Category:
HTML Attribute
Uploaded by:
Admin