What is a HTML meta element?

About

A meta element is a html element added in the head section of a html document

It is used to add metadata to a web page e.g.:

  • author,
  • expiration date,
  • a list of key words,
  • default script used
  • ….

and assign values to those properties.

It's one way to add web metadata markup to a web page along (RDF, Ld-json and other). See Metadata

Example

To define:

<META name="Author" content="Dave Raggett">
  • the publication date:
<meta name="pubdate" content="20100101">

Syntax

Each META element specifies a property/value pair where:

  • the name attribute identifies the property (the key)
  • and the content attribute specifies the property's value.
<META name="key" content="value">

Search Engine

Search engine are not always extracting/using all meta tag

For instance, the <meta> tags excluded by Google Search (Ref) include:

  • description
  • keywords
  • revisit-after
  • generator
  • verify-v1
  • google-site-verification
  • mssmarttagspreventparsing
  • no-cache

Documententation / Reference





Discover More
CSS - Viewport (Reader's window)

The viewport is the viewing area on a screen media. It's then a property of media. The top media of a browser is the window (ie browser tab) As an iframe create a new window, you can set a new viewport...
Expires HTTP header to control the response cache

Expires defines a date time that indicates when a response is stale for the response cache
HTML - Character Set - Character Encoding (charset)

character sets (ie ) configuration in html with the meta tag to set the content-type HTTP header meta.charsetMeta Charset encoding TR/html5/infrastructure.htmlHTML5 - extractingcharacter...
HTML - Document

An HTML document is a well-formed HTML string (ie that contains the html root element). web page The HTML textual representation can be stored: in a string in a file or in the body of an HTTP...
HTML - Head Element (Document Metadata)

The head is the element that contains the html metadata. The most known are: The title element (mandatory) - the title of the page The script element - to load script The link element - to load...
HTML - Metadata Content

Metadata content is content that sets up the presentation or behavior of the rest of the content, or that sets up the relationship of the document with other documents, or that conveys other “out of...
Http Headers Firefox
HTTP - Header (Fields)

Headers are : properties (textual name-value pairs, ie both name and value are text) located in the head of: a http request that the client sends a http response that the server sends The HTTP...
Metadata

HTML element HTML link tag for relation between document and the canonical url PageMaps: invisible blocks of XML that add metadata to pages. Microformats: tags used to mark up visible page content...
Open Graph (Tag|Protocol) - Ogp

- Open Graph is a meta protocol that a web page into a graph object. The Open Graph protocol was originally created at Facebook and is inspired by: Dublin Core link-rel canonical,...
Robots Useragent
Robot - Follow / NoFollow instruction

The follow or nofollow instructions tells bot: to analyze or not the page for links. to give credit to another page. (ie to endorse for ranking) Value Level Description nofollow Page Don't...



Share this page:
Follow us:
Task Runner