metatags html code example

Example 1: html meta tags

<head lang="en">
  <meta http-equiv="content-language" content="en">
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta name="keywords" content="website, blog, foo, bar">
  <meta name="author" content="John Doe">
  <meta name="publisher" content="John Doe">
  <meta name="copyright" content="John Doe">
  <meta name="description" content="This short description describes my website.">
  <meta name="page-topic" content="Media">
  <meta name="page-type" content="Blogging">
  <meta name="audience" content="Everyone">
  <meta name="robots" content="index, follow">
  
  <title>My website title</title>
</head>

Example 2: metadata html

<meta name="author" content="John Doe">

Example 3: what is the meta tag in html

<!-- meta tag defines about the metadata in an html document, meta tags
     always go inside the head tag .It is typically  used to specify 
     page description, character set, keywords, author of the document 
     and viewport settings. The information we store in the meta tag
     are not displayed directly in the website but are read by the bots
     of the browsers and using this our website will be positioned in 
     the search list of the search result. To rank our website, the keyword
     content most importantly should be 'search engine optimised'(S.E.O).

 -->

Example 4: html meta

<meta 
    name="viewport" content="width=device-width, initial-scale=1.0">

Tags:

Html Example