HTML script tag - Coding Tag
×

HTML script tag

1795

The <script> tag is used to define a client-side script such as JavaScript, Jquery. It allows you to place a script within your HTML document. The <script> element either contains scripting statements, or it points to an external script file through the src attribute.

The <script> tag is written as <script></script> with the script inserted between the start and end tags

Syntax:

<script> content goes here </script>

Program:

<!DOCTYPE html>
<html> 
<head>
<title>HTML Script Tag</title>
<script>
function showmsg(){
 alert("Welcome to Coding Tag");
}
</script>
</head>
<body>
<h2>Example of Script tag</h2>
<p><b>Welcome to Coding Tag</b></p>
<form>
<input type="button" value="click" onclick="showmsg()"/>
</form>
</body>  
</html>

Output:

Result - HTML script tag



Best WordPress Hosting


Share:


Discount Coupons

Get a .COM for just $6.98

Secure Domain for a Mini Price



Leave a Reply


Comments
    Waiting for your comments