HTML Head Tag | Tags under the Head Tag
HTML head tag contains the title, style, base, links, script, etc. It contains the <style>, <title>, <base>, <script>, <Meta> and <link>.
<Title> tag
This tag contains the title of the document which is present at the top of the document. The title should not be shorter too much and should not be longer too much.
<! DOCTYPE html>
<html>
<head>
<title> Eduinput</title>
</head>
</html>
<Style> Tag
This tag is used for the style of the document. It is used for the background color, text color, etc.
<head>
<style>
body {background-color: gray;}
h1 {color: green;}
p {color: black;}
</style>
</head>
<Link> tag
This tag is used for the external source with the current document.
<!DOCTYPE html>
<html>
<head>
<link rel=”stylesheet” type=”text/css” href=”mystyle.css”>
</head>
<body>
<h1>Eduinput</h1>
<p>It is an educational-based site.</p>
</body>
</html>
<Base> tag
This tag is used to specify the base URL and includes all relative URLs in a document. There can only be one <base> tag in a document and it must be defined within the <head> tag.
<!DOCTYPE html>
<html>
<head>
<base href= “http:// www.Eduinput.com/html/”>
</head>
</html>
<Meta> Tag
This tag defines the metadata of the HTML document.
<html>
<head>
<title> Eduinput</title>
<meta name = “keywords” content = “HTML, Meta Tags, Metadata” />
</head>
<body>
<p>Eduinput</p>
</body>
</html>
Leave a Reply