HTML and CSS Reference
In-Depth Information
new The NEW icon indicates tags or attributes that are new with HTML5 and
validate successfully with the HTML5 DOCTYPE. Note that these tags may
not work with all browsers.
* Deprecated tags are indicated by an asterisk. Those are tags that have been replaced
by newer elements and validate successfully with the Transitional DOCTYPE.
** Two asterisks indicate tags and attributes not supported (or absent) in HTML5.
Using these tags with an HTML5 DOCTYPE will result in validation errors.
However, these tags will validate with the Transitional DOCTYPE. They remain in
Table A-3 because you will encounter them in Web pages that you maintain.
Deprecated elements are still available for use, and most browsers still support
them. Browsers will probably continue to support deprecated tags and attributes in the
near future, but eventually these tags may become obsolete, so future support cannot be
guaranteed. It is therefore best not to use deprecated tags.
For a comprehensive list of HTML tags and attributes, more thorough descriptions,
examples of HTML tags, and XHTML coding standards, visit the W3C Web site at w3.org.
Table A-3 HTML Tags and Attributes
HTML Tag and Attributes
Description
<!DOCTYPe>
Indicates the version of HTML used
<!--Text here-->
Inserts comments that are ignored by browsers
<a>….</a>
Anchor; creates a hyperlink or fragment identifier
charset= character set **
Specifies the character encoding of the linked resource
href= URL
Hyperlink reference that specifies the target URL
media= media_query
Specifies what media/device the target URL is optimized for
new
id= text
Specifies an id for enclosed text, allowing it to be the target of a hyperlink
rel= relationship
Indicates the relationship going from the current page to the target
rev= relationship **
Indicates the relationship going from the target to the current page
target=_blank, _self, _parent,
_top, framename
Defines the name of the window or frame in which the linked resource
will appear
type= mime_type
Specifies the MIME type of the target URL
new
<address>….</address>
Used for information such as authorship, e-mail addresses, or addresses;
enclosed text appears italicized and indented in some browsers
<area>….</area>
Creates a clickable area, or hotspot, on a client-side image map
alt= text
Specifies an alternate text for the area
new
coords= value1, value2
Specifies the coordinates that define the edges of the hotspot;
a comma-delimited list of values
href= URL
Hyperlink reference that specifies the target URL
hrelang= language_code
Specifies the language of the target URL
new
new
media= media query
Specifies what media/device the target URL is optimized for
nohref **
Indicates that no link is associated with the area
shape=circle, poly, rect
Identifies the shape of the area
target=_blank, _self, _parent,
_top, framename
Defines the name of the window or frame in which the linked resource
will appear
type= mime_type
Specifies the MIME type of the target URL
new
<article>...</article>
Defines an article
new
New with HTML5
* Deprecated tags
** Not supported in HTML5
Search WWH ::




Custom Search