Head Tag


Prev Tutorial Next Tutorial

Head Tag

<head> tag are used for provide a title for the document, define JavaScript and CSS required for the page and meta data of the page.

head tag

Syntax

<html>
<head>
<title>Tutorial4us Home</title>
<meta content="author" name="tutorial4us">
<style>
span
{
color:red;
}
</style>
<script>
function hello
{
alert("Hello how r u ?");
}
</script>
</head>
<body>
<p><span>This is my</span> first web page<p>
</body>
</html>

Result

Tutorial4us Home

This is my first web page


Prev Tutorial Next Tutorial

Advertisements




Facebook Likes

Advertisements