description meta tag code example

Example 1: meta description

<meta name="description" content="A page's description, usually one or two sentences."/>

Example 2: 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 3: meta name="description"

<meta name="description" content="HTML meta tag page">

Example 4: meta description

<meta name="description" content="Full Stack Web Developer Portfolio. Front-end & Back-end Web Developer based
in Berlin, Germany. Tech stack include React, JavaScript, Node, SQL.">

Example 5: change SEO description HTML

<head>  <meta name="description" 
content="This is an example of a meta description. 
This will often show up in search results."></head>

Example 6: html meta

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

Tags:

Misc Example