HTML and CSS Reference
In-Depth Information
Element/Attribute
Description
<canvas>ƒ</canvas>
Marks a resolution-dependent bitmapped region that can be used for dynamic
rendering of images, graphs, and games (HTML5)
ƒƒƒheight="
integer
"
Height of canvas in pixels
ƒƒƒwidth="
integer
"
Width of canvas in pixels
<caption>ƒ</caption>
Creates a table caption
ƒƒƒalign=”
align
”
Specifies the alignment of the caption where
align
is bottom, center, left, right,
or top (deprecated)
ƒƒƒvalign=”top|bottom”
Specifies the vertical alignment of the caption
<center>ƒ</center>
Centers content horizontally on the page (obsolete)
<cite>ƒ</cite>
Marks citation text
Marks text used for code samples
<code>ƒ</code>
<col>ƒ</col>
Defines the settings for a column or group of columns (obsolete)
ƒƒƒalign=”
align
”
Specifies the alignment of the content of the column(s) where
align
is left, right,
or center
ƒƒƒchar=”
char
”
Specifies a character in the column used to align column values (obsolete)
ƒƒƒcharoff=”
integer
”
Specifies the offset in pixels from the alignment character specified in the char
attribute (obsolete)
ƒƒƒspan=”
integer
”
Specifies the number of columns in the group
Specifies the vertical alignment of the content in the column(s) where
align
is
top, middle, bottom, or baseline
ƒƒƒvalign=”
align
”
ƒƒƒwidth=”
integer
”
Specifies the width of the column(s) in pixels (obsolete)
<colgroup>ƒ</colgroup>
Creates a container for a group of columns
ƒƒƒalign=”
align
”
Specifies the alignment of the content of the column group where
align
is left,
right, or center (obsolete)
ƒƒƒchar=”
char
”
Specifies a character in the column used to align column group values
(obsolete)
ƒƒƒcharoff=”
integer
”
Specifies the offset in pixels from the alignment character specified in the char
attribute (obsolete)
ƒƒƒspan=”
integer
”
Specifies the number of columns in the group
ƒƒƒvalign=”
align
”
Specifies the vertical alignment of the content in the column group where
align
is top, middle, bottom, or baseline (obsolete)
ƒƒƒwidth=”
integer
”
Specifies the width of the columns in the group in pixels (obsolete)
<command>ƒ</command>
Defines a command button (HTML5)
ƒƒƒchecked="checked"
Selects the command
ƒƒƒdisabled="disabled"
Disables the command
ƒƒƒicon="
url
"
Provides the URL for the image that represents the command
ƒƒƒlabel="
text
"
Specifies the text of the command button
ƒƒƒradiogroup="
text
"
Specifies the name of the group of commands toggled when the command
itself is toggled
ƒƒƒtype="command|
ƒƒƒradio|checkbox"
Specifies the type of command button
<datalist>ƒƒ</datalist>
Encloses a set of option elements that can act as a dropdown list (HTML5)
Marks text as a definition within a definition list
<dd>ƒ</dd>