Home >> FAQs/Tutorials >> XHTML Tutorials and Tips >> Index
XHTML Tutorial - http-equiv "meta" Tag/Element
(Continued from previous topic...)
What Is a http-equiv "meta" Tag/Element?
a http-equiv "meta" element is a special "meta" element that provides
information equivalent to HTTP headers. A http-equiv "meta" element must
include the "http-equiv" attribute as, http-equiv="Content-Type".
Here is some good examples:
<meta http-equiv="Content-Type" content="text/html;
charset=UTF-8" />
<meta http-equiv="Refresh" content="3;
URL=http://dev.fyicenter.com/" />
<meta http-equiv="Expires" content="Sun, 22 Mar 1998
16:18:35 GMT" />
XHTML browsers and search engines are all respecting http-equiv
meta elements. So it is important to code the keywords meta element properly
in your XHTML documents following rules below:
- Include http-equiv meta elements in XHTML documents as needed.
Do not include all http-equiv meta elements in every XHTML documents.
- Attribute "http-equiv" must contain valid HTTP headers defined in HTTP protocol.
- Attribute "content" must contain valid values that matches the HTTP header
specified in "http-equiv".
- http-equiv="Content-Type" is used to specify the document type, and character set.
- http-equiv="Refresh" is used to specify a refresh with a waiting period and a URL.
- http-equiv="Expires" is used to an expiration time of the document.
(Continued on next topic...)
- What is the Top Level Structure of an XHTML Document?
- How Many Document Types Defined in XHTML 1.0?
- What Is the "html" Tag/Element?
- What is the Second Level Structure of an XHTML Document?
- What Is the "head" Tag/Element?
- What Is the "body" Tag/Element?
- How To Write a "head" Element Properly?
- What Is the "title" Tag/Element?
- What is a Smallest Valid XHTML Dodument?
- What Is Wrong with This "head" Element?
- What Happens If the "title" Element is Missing?
- What Happens If a "meta" Element Is Not Closed?
- What Is a "meta" Tag/Element?
- What Is the Description "meta" Tag/Element?
- What Is the Keywords "meta" Tag/Element?
- What Is the Robots "meta" Tag/Element?
- What Is a http-equiv "meta" Tag/Element?
- What Is the Author "meta" Tag/Element?
- What Is the "base" Tag/Element?
- What Is a "script" Tag/Element?
- What Is a "link" Tag/Element?
- What Is a "style" Tag/Element?
|