Versión en español




HTML meta tag


Note: If you don't know what a tag is and/or how you must use it we recommend you to read our HTML tags and attributes tutorial that you can find in our HTML tutorials section.

Description

The HTML meta tag provides information about the actual document. This information may vary from a document to another because there are no preestablished name or values for this tag. The values of the special attributes and their interpretation depends on the profile description defined in the HTML head tag.

Example:

Code begin <html>
<head>
<title>Car rental in New York</title>
<meta name="Author" content="Jhon Doe" />
<meta name="keywords" lang="en" content="car, rental, rent" />
<meta name="keywords" lang="es" content="autos, alquiler, alquila" />
<meta name="description" lang="en" content="Car rental in New York. Cheap prices best insurance. Call now 999-NO-NUMBER." />
<meta http-equiv="expires" content="Mon, 20 Sep 2006 11:09:00 GMT" />
</head>
<body>
Contents...
</body>
</html>Code end



Attributes

name (name)

Asssigns a name to the property.

content (cdata)

Assigns a content value for the property.

scheme (cdata)

Names a scheme that will be used to interpret the property's value.

http-equiv (name)

Works like the "name" attribute and can be used instead. HTTP servers use this attribute to gather information for HTTP response message headers.

lang (langcode)

Specifies the language of an element's content. The default value in "unknown".

When writing XHTML code the syntax "xml:lang" represents a preferred alternative in XHTML 1.0 and a replacement in XHTML 1.1 (e.g., xml:lang="en").

Example:

Code begin <p lang="en">This is a paragraph in english.</p>
<p lang="es">Este es un p&aacute;rrafo en espa&ntilde;ol.</p>Code end


dir

Specifies the text direction of the element's contents and attribute values, as well as tables directionality. It has two possible values that are case insensitive:
Example:

Code begin <q lang="he" dir="rtl">...a Hebrew quotation...</q>Code end



Events

There are no events defined for this tag.

See complete list and information about events in HTML




Bypass footer options  |   Send to a friend Send to a friend  |  Post to del.icio.us Post to del.icio.us

Digg this page Digg this!  |  File on Furl File on Furl  |  Add to Yahoo! MyWeb Add to Yahoo! MyWeb

Bypass W3C declarations | 

Valid XHTML 1.0 Strict  |  Valid CSS Why should you trust us? Click the images on the left to see how seriously we write our own pages, then make your choice.

Level Triple-A conformance icon, W3C-WAI Web Content Accessibility Guidelines 1.0. This website gives its best effort to achieve the Level Triple-A Conformance, W3C-WAI Web Content Accessibility Guidelines 1.0. If you find any detail or error that we didn't see, don't hesitate and let us know.

The power of the Web is in its universality. Access by everyone regardless of disability is an essential aspect. -- Tim Berners-Lee, W3C Director and inventor of the World Wide Web.

 Link to us  |  Contact us  |  Beyond HTML  |  Tools and resources  |  Sitemap  |  Webmaster