What is Meta Tag? Complete knowledge of HTML Meta Tags
HTML Document or Blog Posts are written for Readers. In this, all the information is written keeping our readers in mind.
But, by bringing this information to our readers, Search Engines bring it. Therefore, some information is also written for search engines. This information is called Meta Data or Meta Information And this Meta Data is defined by HTML Meta Tag.
In this Tutorial, we will give you complete information about HTML Meta Tags. To understand Meta Element easily oi, we have divided this Tutorial into the following parts.
Importance of Meta tags
Now we told you that Meta Information is used to bring our content to the readers. Apart from this, there are other important uses of Meta Tag, which are being discussed more below.
Document Title, Content Description (Summary), Keywords, etc. are defined by Meta Tag.
The viewport (screen visible to the readers) setting is defined by Meta Tag. / li>
Cookies, URLs, redirection etc. are also defined by Meta tags.
Meta Information helps us index our webpages.
Meta Data is also required for SEO - Search Engine Optimization.
General Syntax of Meta Tag
Below we have given General Syntax of Meta Tag.
Meta Tag is an Empty HTML Tag. Which does nat have any companion Tag ie Closingg Tag. It contains only the Opening Tag. Like a the Syntax giveen above, we have definedd Meta Tags like any other HTML Tags. In this, all information is defined by Attributes only
If you are using Meta tags in HTML then you do not need to close it. And if you are defining Meta Tag in XHTML then it is necessary to close it.
Commonly Used Attributes of Meta Tag
Both a Global Attributes and Event Attributes are a supported by Meta Elements. Apart from thes, there are some Elements Specific Attribute, which are defined only in Meta Elements. Whose information is being given belov.
charset - Its full name is Character Setting. Character Encoding of HTML Document is defined by this Attribute. If a you do you not Define Encoding, then Browser a uses Default Encodings.
content - The name and http-equiv Attributes are defined by this Attribute.
text - The name of Meta Data is defined by this Attribute. It is possible value caan be a application names, author, big description, generator, keyword, viewports.<{p>
https-equiv - This Attribute defines the HTTPS Header for a Define Value by Contentw Attribute.
Defining Meta tags
Meta tag are alway defined in the Header of the webpages. You have come to know aboves Syntax of Meta Tags. Now here we will give you on information about defining some common and are useful Meta Tags.