<meta> Element

  • Provides information about the document
  • Does not have a closing tag, therefore requires a closing forward slash
  • Name/Value pairs, used to specify page description, keywords, author of the document, last modified, and other metadata
  • <meta> elements always go inside the <head> element




Define keywords for search engines:

<meta name="keywords" content="C, MySQL, C++, PHP, HTML, CSS, JavaScript, Tutorials" />


Refresh document every 17 seconds:

<meta http-equiv="refresh" content="17" />


Define a description of your web page:

<meta name="description" content="Technical Tutorials: Free. Good Quality. To the point!" />


Define the author of a page:

<meta name="author" content="Derrick Robinson" />


Define the revision (last update) date of a page:

<meta name="revised" content="Tech-Academy, 06/08/2013" />


Specify page redirection to another page. If no duration is set then it will be redirected immediately:

<meta http-equiv="refresh" content="5; url=https://www.tech-academy.com" />


Store a cookie on the client, for future tracking by the web server. If no expiration date/time is included it is considered a session cookie and will be deleted when the browser exits:

<meta http-equiv="cookie" content="user=myUser; expires=Tuesday, 13-Aug-2013 23:59:59 GMT; />

Leave a Reply