mycsvilla

We explore our idea through technology

WE DESIGN WEBSITE AND SOFTWARE OF ANY KIND.CLICK CONTACT MENU TO CONTACT US

Thursday, 23 November 2017

html head tag

                                          HEAD TAGS







Every HTML document needs a pair of head tags.

<html>
<head>
</head>
</html>

The head consist of TITLE tag <title>,LINK tag<link>,META tag <meta> and style tag <style>
1.TITLE TAG:-The HTML <title> tag is used give  a title to current HTML document.
example

<html>
<head>
<title>HTML Title Tag Example</title>
</head>
</html>
Result look like this

title



2.STYLE TAG:The HTML <style> tag is used to specify style sheet for the current HTML document.In HTML the <style> tag has an end tag which is is </style>
 examaple:
<html>
<head>
<style type="text/css">
.myclass{
background-color: #aaa;
padding: 10px;
}
</style>
</head>
</html>

3.LINK TAG:he HTML <link> tag is used for defining a link to an external document.In HTML the <link> tag has no end tag.
examaple:

<html>
<head>
<link rel="stylesheet" href="stylenew.css">
</head>
</html>

4.META TAG:The HTML <meta> tag is used for declaring metadata for the HTML document.it help in giving description to your website.it does not appear in your document.
In HTML the <meta> tag has no end tag.It has an attribute of Name,Content,Http-equip.






examaples:

1.<html>
<head>
<title>Meta Tags Example</title>
<meta name="keywords" content="HTML, Meta Tags" />
</head>
</html>

2.<html>
<head>
<title>Meta Tags Example</title>
<meta name="keywords" content="HTML, Meta Tags, Metadata" />
<meta name="description" content="Learning about Meta Tags." />
</head>
</html>

3.<html>
<head>
<title>Meta Tags </title>
<meta name="keywords" content="HTML, Meta Tags, Metadata" />
<meta name="description" content="Learning about Meta Tags." />
<meta name="revised" content="Mycsvilla, 11/11/2017" />
<meta http-equiv="refresh" content="5" url="mycsvilla.ml />
</head>
<body>
</html>
                              
     PREVIOUS                                                                                                                                                  NEXT

                                                    

No comments:

Post a Comment