HTML HEAD

HTML HEAD


HTML HEAD Head element is used to store meta data i.e data about data. HTML meta data is data about HTML document. Meta data define the title of document, its style, links, scripts, and other meta information. Tags used in <head> Element are <title>,<style>,<meta>,<link>,<script> and <base>. Do not forget to add <html> and <body> tag. Avoiding them may crash the system. In html5 we can avoid <head> tag. By default browser will add a <head> tag to all elements above the <body> tag.
HTML <title>
HTML <title> tag is used to give title to the document. This tag will provide a title to the page in browser tool bar. When adding the page to favourites the name specified in the <title> tag will be saved. Displays a title for the page in search engine results.
HTML <style> 
HTML <style> element is used to provide styling information for the page. CSS codes can be provided in this tag. This is called Internal styling.
HTML <link> 
HTML <link> Element is used to link HTML pages to external resources. <link> element is most often used to link external css files. 
HTML <meta> 
HTML <meta> element is used to specify meta data in html document. It is used to specify description, Author and other meta data. 
HTML <script>
HTML <script>   element is used to include java script codes inside the html page. 

HTML <base>

 Element It specifies the base url and base targets for all relative urls.
<html>
<head>
<title>HTML HEAD</title>
<style>
p{color:blue;}
</style>
<meta name="description" content="blog for html tutorials">
<base href="http://www.mytechstuffs.com" />
</head>
<body>
<p>Styling is given in head</p>
<p>All meta information goes before the body.</p>
</body>
</html>

Output

HTML HEAD

Styling is given in head

All meta information goes before the body.

0 Comment "HTML HEAD"