HTML and CSS Reference
In-Depth Information
Table A-3 HTML Tags and Attributes
(continued)
HTML Tag and Attributes
Description
<colgroup>….</colgroup>
(continued)
charoff=
value
**
Specifies a number of characters to offset data aligned with the character
specified in the char property
span=
number
Sets the number of columns the <col> element spans
valign=
position
**
Specifies vertical alignment of text within the column
width=
pixels
**
Sets the width of each column spanned by the colgroup statement
<command>…</command>
Defines a command button
new
checked=checked
Defines if the command is checked or not; use only if type is radio
or checkbox
disabled=disabled
Defines if the command is available or not
icon=
URL
Defines the URL of an image to display as the command
label=
name
Defines a name for the command; the label is visible
radiogroup=
groupname
Defines the name of the radiogroup this command belongs to;
use only if type is radio
type=checkbox, command,
radio
Defines the type of command; default value is command
<datalist>...</datalist>
Defines a dropdown list
new
<dd>….</dd>
Indicates that the enclosed text is a definition in the definition list
<details>...</details>
Defines details of an element
new
<div>….</div>
Defines block-level structure or division in the HTML document
align=
position
**
Specifies alignment of the content block
<dl>….</dl>
Creates a definition list
<dt>….</dt>
Indicates that the enclosed text is a term in the definition list
<em>….</em>
Indicates that the enclosed text should be emphasized; usually appears in italics
<embed>...</embed>
Defines external interactive content or plugin
new
height=
pixels
Specifies the height of the embedded content
src=
URL
Specifies the URL of the embedded content
type=
mime_type
Specifies the MIME type of the embedded content
width=
pixels
Specifies the width of the embedded content
<ieldset>….</ieldset>
Groups related form controls and labels
disabled=disabled
Specifies that a fieldset should be disabled
form=
form_id
Specifies one or more forms that a fieldset belongs to
name=
text
Specifies the name of the fieldset
<igcaption>...</igcaption>
Defines the caption of a figure element
new
new
<igure>...</igure>
Defines a group of media content, and their captions
<font>….</font> **
Defines the appearance of enclosed text
color=
color
**
Sets the font color; can be a hexadecimal value (#rrggbb) or a word
for a predefined color value
face=
list
**
Identifies the font face; multiple entries should be separated by commas
point-size=
value
**
Sets the point size of text for downloaded fonts
size=
value
**
Sets the font size in absolute terms (1 through 7) or as a relative value
weight=
value
**
Sets the weight of the font, ranging from 100 (lightest) to 900 (heaviest)
<footer>...</footer>
Defines a footer for a section or page
new
new
New with HTML5
* Deprecated tags
** Not supported in HTML5