HTML head element contains metadata (data about data). Metadata is data about HTML document and it is not displayed in browser. There are many metadata elements that are used in head element. The elements like <title>, <style>, <script>, <link>, <meta>, <base> are known as metadata elements.
Title element is a metadata element and it is used to assign or give ttile to HTML page. title is displayed in top left of browser tab.
<head>
<title>Content</title>
</head>
You can use title element as tooltip within any element and any where in HTML document.
Title element is a pair tag and output of title element is title of page like you can see in above example.
Style elment is a metadata element and it is used to apply styles to HTML page.
<head>
<style>CSS styles</style>
</head>
You can use style element as inline css within any element and any where in HTML document.
Style element is a pair tag and output of style element is css styles like you can see in above example.
Script elment is a metadata element and it is used to insert javascript in HTML page.
<head>
<script>javascript code</script>
</head>
You can use script element for external javascript file any where within HTML document.
Script element is a pair tag and output of script element is javascript like you can see in above example.
Link elment is a metadata element and it is used to insert css as external file or it insert other links in HTML page.
<head>
<link rel=Any relation
type=Any type
href=URL for file link
>
</head>
You can use link element to insert external css file or any other content any where within HTML document.
Link element is a pair tag and output of link element can be any file or icon etc like you can see in above example.
Meta elment is a metadata element and it is used to insert information about page, auther, content or it can used for refresh page after some interval of time.
<head>
<meta charset=Any characters
name=Any name
content=information about name
>
</head>
You can use meta element to SEO of your website or its content any where within HTML document.
Meta element is a pair tag and output of link element is information about web pagess like you can see in above example.
Base elment is a metadata element and it is used to specifies default URL and default target in HTML page.
<head>
<base href=URL/address
target=Location
>
</head>
You can use base element to specify URL or address of page within HTML document.
Base element is a pair tag and output of base element is default URL and default target, if URL and target are not defined in HTML page then both base URL and target will be executed like you can see in above example.
Open notepad or any other text editor, follow the following points.
save file with name task.html or task.htm and then open it using any browser and see results.
Don't forget some metadata elements are non empty and some are empty elements which means non empty always come in pair and empty come in single.