HTML Meta Tag

HTML Meta Tag

  • Metadata is nothing but information about other information.
  • The <meta> tag is used to provide an additional information about the HTML document.
  • The <meta> tag specifies page description, keywords, author of the document, last modified, and other metadata.
  • The <meta> tag is always written between the <head> and </head> tags.
  • This tag is an empty element and so does not have a end tag.
  • You can include one or more meta tags in your document.
  • The metadata is used by browsers, search engines, or other web services.
The attributes of meta tag are:

TagDescription
nameDefines a name of the metadata
ContentSpecifies the value associated with the http-equiv or name attribute
SchemeSpecifies the scheme to be used to interpret  the property's value
Http-equivSpecifies an HTTP header for the information/value of the content attribute

Example:
<meta name="author" content="Dennis Ritchie">