'meta' Syntax and Note : meta « HTML Tag Reference « HTML CSS Reference






'meta' Syntax and Note

Note:


<meta> HTML Specific Attributes

content                    
Used with either the http-equiv (HTTP headers) 
attribute or the name attribute. Its value is used to set either 
the http-equiv value or the value of the variable defined in 
the name attribute.

Syntax:          <meta http-equiv="headername" content="value_assigned to the header">
------------------------------------------------------------------------

http-equiv      
http-equiv attribute produce the same results as HTTP headers. 
                     provide additional instructions to the server, 
                     complement the HTTP headers, 
                     provide additional functionality to the browsers. 
                     
Some of http-equiv values are: 
content-language, 
content-script-type, 
content-style-type, 
content-type, 
default-style, 
expires, 
refresh, 
set-cookie, and 
window-target.

Syntax:            <meta http-equiv="value" content=". . .">
------------------------------------------------------------------------

content-language

Specifies the language of the document.

Example:           <meta http-equiv="content-language" content="en-US">
------------------------------------------------------------------------
content-script-type

Specifies the default scripting language that the browser should use 
for the loaded page.

Example:           <meta http-equiv="content-script-type" content="text/javascript">
------------------------------------------------------------------------
content-style-type

Sets the default style sheet language used in the document.

Example:           <meta http-equiv="content-style-type" content="text/css">

------------------------------------------------------------------------

content-type

Specifies the type of media that is sent between the browser and server. 
You can also extend the content-type to other character sets by including a charset 
declaration in the content-type value.

Example:  <meta http-equiv="content-type" content="text/html; charset=ISO646-US">

------------------------------------------------------------------------
default-style

Sets the default style sheet used document.

Example:      <meta http-equiv="default-style" content="stylesheet">
------------------------------------------------------------------------
expires

Sets the expiration date and time of the document.

Example:      <meta http-equiv="expires" content="WED, 20 Jan 1999 15:20:30 GMT">

------------------------------------------------------------------------
refresh

Specifies how frequently a page should be reloaded. 
Additionally, an alternate URL can be used when reloading the page.

Example:

<meta http-equiv="refresh" content="3">
<meta http-equiv="refresh" content="3;url=http://www.java2s.com">
------------------------------------------------------------------------
set-cookie

Sets a cookie (only in Netscape Navigator).

Example:

<meta http-equiv="set-cookie" 
content="cookievalue=xxx;expires=Friday, 31-Jan-03 12:59:59 GMT; path=/">

------------------------------------------------------------------------

window-target

Specifies a window or frame as the target for 
the current page. By specifying "_top" as the target, you can make sure that 
the linked page is not displayed within another frameset.

Example:


<meta http-equiv="window-target" content="_top">
------------------------------------------------------------------------
name

Includes other types of non-header information, 
such as the author, a description of the document, copyright information, 
keywords, and so on. Search engines look for the 
following names: author, copyright, description, and keywords. 
Other possible names are generator, progid, robots, and template.

Syntax:


<meta name="value" content=". . .">

------------------------------------------------------------------------

author

Identifies the author of the document.

Example:   <meta name="author" content="Lazaro Issi Cohen">

------------------------------------------------------------------------

copyright

An unqualified copyright statement.

------------------------------------------------------------------------

description

This describes the document in the browser window. 
This is used by some search engines to provide a document 
description to the users performing searches.

Example:


<meta name="description" content="High Tech books.">
------------------------------------------------------------------------


generator

Identifies the name and version number of the publishing or development tool used 
in creating the document.

Example:


<meta name="generator" content="Dreamweaver4.0">

------------------------------------------------------------------------

keywords

A comma-separated list of keywords used by search engines to index the document.

Example:


<meta name="keywords" content="art, oils, landscape">

------------------------------------------------------------------------

progid

The program ID of the document's editor.

Example:


<meta name="progid" content="word.document">
------------------------------------------------------------------------


robots

This header instructs web robots how to act on the page.

Example:


<meta name="robots" content="noindex">

------------------------------------------------------------------------

template

The name and location of the template used to create or modify the document.

Example:


<meta name="template" content="C:\Program Files\Microsoft Office\Office\html.dot">

------------------------------------------------------------------------

scheme

Make browser interpret data formats correctly. 
The following two examples imply MM-DD-YYYY and 
DD-MM-YYYY formats, respectively:


<meta scheme="USA" name="date" content="10-08-2003">
<meta scheme="Europe" name="date" content="10-08-2003">


------------------------------------------------------------------------

<meta scheme="dds" name="description" content="04.251 Supercomputers systems design">


Other <meta> Tags

    Apple <meta> Tags   Author-Corporate, Author-Personal, Publisher-Email, 
    Identifier-URL, Identifier, Coverage, Bookmark.

    Eastman Kodak <meta> Tags EKBU, EKdocType, EKdocOwner, EKdocTech, EKreviewDate, 
    EKArea.

    IBM <meta> Tags   ABSTRACT, CC, ALIAS, OWNER.

    Microsoft <meta> Tags   Page-Enter, Page-Exit, Site-Enter, Site-Exit 
    (filters and transitions).

Example:


<meta http-equiv="Page-Enter" content="revealTrans(Duration=4.0,Transition=3)">




     
Syntax:
    
<html>    
<header>
<meta attributes events>
</header>
<body>
</body>
</html>

    

      
      








Related examples in the same category

1.'meta' Event Handlers
2.'meta' CSS Attributes and JavaScript Style Properties
3.'meta' JavaScript Properties
4.'meta' JavaScript Methods
5.'meta' JavaScript Collections