HTML SCRIPT Tag || Script Tag in HTML

HTML SCRIPT <script> Tag

0 1124

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()"/>



Leave a Reply

    Waiting for your comments