XHTML » Tags » meta

<meta />

The meta tag is primarily used to list information (meta data) about the current HTML document. This information can be anything you want users to know about your site including author names, keywords, subject matter, and topics of interest. This meta data is used extensively by the various Internet search engines.

The meta tag can also be used with the http-equiv attribute to simulate HTTP headers.
This tag presents the information as name/content paired values by using the name and content attributes. You can have more than one meta element per page.
This is a self-closing tag. The blank space before the slash (/) is recommended for maximum browser compatibilty.


<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<title>DevGuru XHTML meta Tag Example</title>
<meta name="author" content="The Guru" />
<meta name="description" content="DevGuru Cascading Style Sheets Quick Referenceis a 40 page reference that discusses the style properties that set specificvisual parameters for a Web page." />
<meta name="keywords" content="DevGuru, CSS, css, Cascading Style Sheet, cascading style sheet,style sheet, background, border, floating elements, font, margin, padding, text" />
<title>DevGuru Cascading Style Sheets Quick Reference</title>
Language(s): XHTML
<meta http-equiv="refresh" content="30" />

The http-equiv attribute can be used to update a page. In this example, the update occurs every thirty seconds.

Language(s): XHTML

See Also: