Head Tag

The <headelement is a container for all the head elements. The <headelement can include a title for the document, scripts, styles, meta information, and more. The following elements can go inside the <headelement:

EXAMPLE

<html>
<head>
<meta content=”codingknack.com ” name=”auther”/>

<style>
span{
color:sandybrown;
}
</style>
<script>
function hello
{
alert(“Welcome to codingknack”)
}
</script>
</head>
<body>
<p>This is my<span>first web page</span></p>
<p>My first website</p>
</body>
</html>

head-tag

OUTPUT

display-head-tag

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Close Menu