What are Meta tags in HTML and why they are important?.
Meta tags are used to displays information which is visible in search result. This information is used by search engine for understanding webpage to give better results and improve search engine optimization. This information is not displayed in output or webpage. Meta tag is empty element and present within head tag.
Attributes of meta tag are as follows:
1. Name: specifies name of Metadata like author name, description, keyword and copyright.
2. Content: this attribute specifies information about name attribute
3. Char Set: this attribute specifies character encoding used by document called as character encoding declaration.
4. http-equiv: this attribute used for addition of information in http header
This can have values refresh(refresh page after some time), set cookies(send cookies to server), content type(Specifies the character encoding for the document) . expires(session will expired after some time), content security policy( Specifies a content policy for the document ).
(As you see content in meta tag is not displayed in browser but it may be appear in search results)
Comments
Post a Comment