Horje

How to create HTML <script> type Attribute

It is a script with the type attribute specified.
index.html
Example: HTML
<p id="demo"></p>

<script type="text/javascript">
document.getElementById("demo").innerHTML = "Hello JavaScript!";
</script>

Output should be:

How to create HTML <script> type Attribute




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