23-04-2021



What is a meta description? The meta description is an HTML attribute that provides a brief summary of a web page. Search engines such as Google often display the meta description in search results, which can influence click-through rates. Meta-descriptions play a big role in search results. In case you're unfamiliar with the term, a meta description is the snippet of information below the link of a search result. Its purpose is to describe the contents of the page to the searcher. The end goal is to convince and persuade the searcher to click through to your website.

  1. Meta Description is a HTML tag that is part of the Meta Elements used to specify and summarize the content of a webpage. Meta Description tags are important because search engines use them as snippets in search results. Learn more in our guide.
  2. A meta description is an html tag which consists of a snippet of text (up to around 155 characters) that summarizes a page’s content. Search engines show meta descriptions underneath the page titles in search results.

Example

Describe metadata within an HTML document:

<head>
<meta charset='UTF-8'>
<meta name='description'>
<meta name='keywords'>
<meta name='author'>
<meta name='viewport'>
</head>
Try it Yourself »

More 'Try it Yourself' examples below.

Definition and Usage

Meta Description

The <meta> tag defines metadata about an HTML document. Metadata is data (information) about data.

<meta> tags always go inside the <head> element, and are typically used to specify character set, page description, keywords, author of the document, and viewport settings.

Metadata will not be displayed on the page, but is machine parsable.

Metadata is used by browsers (how to display content or reload page), search engines (keywords), and other web services.

Meta description wordpress

There is a method to let web designers take control over the viewport (the user's visible area of a web page), through the <meta> tag (See 'Setting The Viewport' example below).

Browser Support

Element
<meta>YesYesYesYesYes

Attributes

AttributeValueDescription
charsetcharacter_setSpecifies the character encoding for the HTML document
contenttextSpecifies the value associated with the http-equiv or name attribute
http-equivcontent-security-policy
content-type
default-style
refresh
Provides an HTTP header for the information/value of the content attribute
nameapplication-name
author
description
generator
keywords
viewport
Specifies a name for the metadata

Global Attributes

The <meta> tag also supports the Global Attributes in HTML.

More Examples

Define keywords for search engines:

Checker
<meta name='keywords'>

Define a description of your web page:

Meta Description Wordpress

<meta name='description'>

Define the author of a page:

Refresh document every 30 seconds:

Setting the viewport to make your website look good on all devices:

<meta name='viewport'>

Setting the Viewport

The viewport is the user's visible area of a web page. It varies with the device - it will be smaller on a mobile phone than on a computer screen.

You should include the following <meta> element in all your web pages:

<meta name='viewport'>

Meta Description Character Count

This gives the browser instructions on how to control the page's dimensions and scaling.

The width=device-width part sets the width of the page to follow the screen-width of the device (which will vary depending on the device).

The initial-scale=1.0 part sets the initial zoom level when the page is first loaded by the browser.

Here is an example of a web page without the viewport meta tag, and the same web page with the viewport meta tag:

Tip: If you are browsing this page with a phone or a tablet, you can click on the two links below to see the difference.


Meta Description Checker


With the viewport meta tag

Meta Description Tag

You can read more about the viewport in our Responsive Web Design - The Viewport Tutorial.

Related Pages

Meta Description Counter

HTML tutorial: HTML Head

Meta Description Length

HTML DOM reference: Meta Object

Meta Description

Default CSS Settings

None.