Name
CONTENT — NN all IE all HTML all
Synopsis
CONTENT=”valueString"Required
The equivalent of the value of a name/value pair. The attribute is
usually accompanied by either a NAME or
HTTP-EQUIV attribute, either of which act as the
name portion of the name/value pair. Specific values of the
CONTENT attribute vary with the value of the
NAME or HTTP-EQUIV attribute.
Sometimes, the CONTENT attribute value contains
multiple values. In such cases, the values are delimited by commas.
Some of these values may be name/value pairs in their own right, such
as the content for a refresh META element. The
first value is a number representing the number of seconds delay
before loading another document; the second value indicates a URL of
the document to load after the delay expires.
Example
<META HTTP-EQUIV="refresh" CONTENT="2;URL=http://www.giantco.com/basicindex.html">
Value
Any string of characters. The string must be inside a matching pair of (single or double) quotation marks.
Default
None.
Object Model Reference
- IE
[window.]document.all.elementID.content
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access