HTML Head Element
HTML Head Element
HTML Head ElementThe <head> component is a compartment for metadata (information about information) and is put between the <html> tag and the <body> tag.
HTML metadata is information about the HTML archive. Metadata isn't shown.
Metadata ordinarily characterize the record title, character set, styles, contents, and other meta data.
The accompanying labels depict metadata: <title>, <style>, <meta>, <link>, <script>, and <base>.
The HTML <title> Element
The <title> component characterizes the title of the archive, and is required in all HTML records.
The <title> component:
characterizes a title in the program tab
gives a title to the page when it is added to top choices
shows a title for the page in web crawler results
A basic HTML report:
The HTML <style> Element
The <style> component is utilized to characterize style data for a solitary HTML page:
The HTML <meta> Element
The <meta> component is utilized to indicate which character set is utilized, page depiction, watchwords, creator, and other metadata.
Metadata is utilized by programs (how to show content), via web crawlers (watchwords), and other web administrations.
Characterize the character set utilized:
HTML <link> Element
The HTML <link> component is utilized to connect an outer template to your website page. The <link> component contains fundamental two characteristics which are "rel" and "href". The rel quality shows that it is a template, and href gives the way to that outer document.
META CHARSET
Meta charset was presented in HTML5. Prior meta tag with substance and http-equiv was utilized to pronounce charset.
Meta charset is utilized to announce site page character encoding. The prescribed charset for greatest site is UTF-8. The default charset for windows OS is windows-1252.
Qualities
Ascribes can be added to a HTML component to give more data about how the component ought to show up or act.
There are 3 sorts of traits that you can add to your HTML labels: Element-explicit, worldwide, and occasion handler substance properties.
The <head> component acknowledges the accompanying characteristics.
Component Specific Attributes
This table shows the credits that are explicit to the <head> tag/component.
Characteristic Description
None
Worldwide Attributes
The accompanying characteristics are standard over all HTML5 components. Consequently, you can utilize these qualities with the <head> tag , just as with all other HTML labels.
accesskey
class
contenteditable
contextmenu
dir
draggable
dropzone
covered up
id
latent
itemid
itemprop
itemref
itemscope
itemtype
lang
spellcheck
style
tabindex
title
interpret
For a full clarification of these qualities, see HTML5 worldwide characteristics.
Components kept inside the <head> tag
<base>
<link>
<meta>
<noscript>
<script>
<style>
<title>
Comments
Post a Comment