w3schools    w3Schools
Search :
   
HOME HTML CSS XML JAVASCRIPT ASP PHP SQL MORE...   References Examples Forum About
ADVERTISEMENTS

XML Certification
Download XML editor
Custom Programming
 
Table of contents
HTML Reference
HTML by Alphabet
HTML by Function
HTML Attributes
HTML Events
HTML Colornames
HTML Character Sets
HTML ASCII
HTML ISO-8859-1
HTML Symbols
HTML URL Encode
HTML Lang Codes
HTTP Messages

HTML Tags
<!-->
<!DOCTYPE>
<a>
<abbr>
<acronym>
<address>
<applet>
<area>
<b>
<base>
<basefont>
<bdo>
<big>
<blockquote>
<body>
<br>
<button>
<caption>
<center>
<cite>
<code>
<col>
<colgroup>
<dd>
<del>
<dfn>
<dir>
<div>
<dl>
<dt>
<em>
<fieldset>
<font>
<form>
<frame>
<frameset>
<head>
<h1> - <h6>
<hr>
<html>
<i>
<iframe>
<img>
<input>
<ins>
<kbd>
<label>
<legend>
<li>
<link>
<map>
<menu>
<meta>
<noframes>
<noscript>
<object>
<ol>
<optgroup>
<option>
<p>
<param>
<pre>
<q>
<s>
<samp>
<script>
<select>
<small>
<span>
<strike>
<strong>
<style>
<sub>
<sup>
<table>
<tbody>
<td>
<textarea>
<tfoot>
<th>
<thead>
<title>
<tr>
<tt>
<u>
<ul>
<var>

Selected Reading
Web Statistics
Web Glossary
Web Hosting
Web Quality

Browse Tutorials
 

HTML <meta> name attribute


HTML meta Tag Reference HTML <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="HTML,CSS,XML,JavaScript" />
<meta name="author" content="Hege Refsnes" />
</head>

Try it yourself!


Definition and Usage

The name attribute provides a name for the information in the content attribute.

The value of the name attribute depends on the value of the content attribute.

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


Browser Support

Internet Explorer Firefox Opera Google Chrome Safari

The name attribute is supported in all major browsers.


Syntax

<meta name="value" />

Attribute Values

Value Description
author Defines the author of the document
copyright Defines copyright information of the document
description Defines a description of the document
distribution Defines the distribution level of the document (like "Global")
generator Defines the program used to generate the document
keywords Defines keywords to describe the document
progid Defines the id of a program used to generate the document
rating Defines webpage rating
resource-type Defines the type of the web resource
revisit-after Defines the expected update rate of the web resource
robots Defines rules for robots (web crawlers for search engines)
others

You can define your own names in a schema



HTML meta Tag Reference HTML <meta> tag