Horje

How to add HTML async Attribute in HTML Page

It is A script that will be run asynchronously as soon as it is available.
index.html
Example: HTML
<!DOCTYPE html>
<html>
<body>

<h1>The script async attribute</h1>

<p id="p1">Hello World!</p>
<script src="demo_async.js" async></script>

</body>
</html>

Output should be:

How to add HTML async Attribute in HTML Page




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