W3Schools.com

HTML5 <meta> name Attribute

HTML5 meta Tag Reference HTML5 <meta> tag

Example

Use the name attribute to define a description, keywords, and the author of an HTML document:

<head>
<meta name="description" content="Free Web tutorials" />
<meta name="keywords" content="HTML5,CSS,JavaScript" />
<meta name="author" content="Hege Refsnes" />
</head>

Try it yourself »

Browser Support

Internet Explorer Firefox Opera Google Chrome Safari

The name attribute is supported in all major browsers.


Definition and Usage

The name attribute specifies the name for the metadata.

The name attribute specifies a name for the information/value of the content attribute.

Note: If the http-equiv attribute is set, the name attribute should not be set.


Differences Between HTML 4.01 and HTML5

None.


Syntax

<meta name="value" />

Attribute Values

Value Description
application-name Specifies the name of the Web application that the page represents
author Specifies the name of the author of the document.

Example: <meta name="author" content="Hege Refsnes" />
description Specifies a description of the page. Search engines can pick up this description to show with the results of searches.

Example: <meta name="description" content="Free web tutorials" />
generator Specifies one of the software packages used to generate the document (not used on hand-authored pages)

Example: <meta name="generator" content="FrontPage 4.0" />
keywords Specifies a comma-separated list of keywords - relevant to the page (Informs search engines what the page is about).

Tip: Always specify keywords (needed by search engines to catalogize the page).

Example: <meta name="keywords" content="HTML5, meta tag, tag reference" />


HTML5 meta Tag Reference HTML5 <meta> tag
WEB HOSTING
Best Web Hosting
PHP MySQL Hosting
Best Hosting Coupons
UK Reseller Hosting
Cloud Hosting
Top Web Hosting
$3.98 Unlimited Hosting
Premium Website Design
WEB BUILDING
Download XML Editor
FREE Website BUILDER
Best Website Templates Top CSS Templates
CREATE HTML Websites
EASY WEBSITE BUILDER
W3SCHOOLS EXAMS
Get Certified in:
HTML, CSS, JavaScript, XML, PHP, and ASP
W3SCHOOLS BOOKS
New Books:
HTML, CSS
JavaScript, and Ajax
STATISTICS
Browser Statistics
Browser OS
Browser Display
SHARE THIS PAGE