Meta tag is used to include name/value pairs that describe properties of HTML document like author, session expiry date, a list of keywords ,document author etc. <meta> tag is an empty element so it does not have closing tag but it carries information within its attributes. In your document you can include one or more Meta tags based on that what information you want to keep in your document.
Adding Meta tag to your document:
You can also add meta data to your web pages by placing meta tags inside the header of document that is represented by <head> and </head>.
Meta tag can have following attributes.
- Name :
Name for property for example includes keywords, description, author, revised, generator etc.
It specifies the property’s value.
It specifies a scheme to interpret the property’s value.
It is used for http response message header. For example to refresh the page or to set cookie