HTML script tag - Coding Tag

HTML script tag

0 1439

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


<script> content goes here </script>


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


Result - HTML script tag

Best WordPress Hosting


Discount Coupons

Get a .COM for just $6.98

Secure Domain for a Mini Price

Leave a Reply

    Waiting for your comments