Appendix B. XHTML Element Reference

This appendix is a quick reference to the elements that are in the HTML and XHTML recommendations. They are listed with the attributes each element can carry and a brief description of their purpose.

Please be aware that this appendix features deprecated elements, which are marked with the word "deprecated" next to them; you should avoid using these elements where possible because they are marked for removal from future specifications.

There are also several elements that are used just to control the presentation of documents, without describing their contents or the structure of the information in the document. You should avoid using these elements, and aim to use CSS to control the presentation of your documents instead.

When an element has only been introduced recently, I will note the first version of Internet Explorer (IE) and Firefox (FF) to support the element next to the element's name, starting with IE6 and FF2.

Finally, all attribute values should be given inside double quotation marks, and any attribute listed without a value should have the name of the attribute repeated as its value in order to be XHTML-compliant — for example, disabled = "disabled".

Core Attributes

Core Attributes

Unless otherwise stated, the core attributes can be used with all of the elements in this appendix.

class = name

Specifies a class for the element to associate it with rules in a style sheet

dir = ltr | rtl

Specifies the direction for rendering text (left to right or right to left)

id = name

Defines a unique identification value for that element within the document

lang = language

Specifies the (human) language for the content of the element

onclick = script

Specifies a script to be called when the user clicks the mouse over this element

ondblclick = script

Specifies a script to be called when the user double-clicks the mouse over this element

onkeydown = script

Specifies a script to be called when the user presses a key while this element has focus

onkeypress = script

Specifies a script to be called when the user presses and releases a key while this element has focus

onkeyup = script

Specifies a script to be called when the user releases a key while this element has focus

onmousedown = script

Specifies a script to be called when the user presses the mouse button while the cursor is over this element's content

onmousemove = script

Specifies a script to be called when the user moves the mouse cursor while over this element's content

onmouseout = script

Specifies a script to be called when the mouse has been over an element, and has moved outside of its border so that it is no longer over the element

onmouseover = script

Specifies a script to be called when the mouse is moved over this element's content

onmouseup = script

Specifies a script to be called when the user releases a mouse button while the cursor is over this element's content

style = style

Specifies an inline CSS style rule for the element

title = string

Specifies a title for the element

xml:lang

Specifies the (human) language for the content of the element

<a>

Defines a link. The href or name attribute must be specified.

accesskey = key_character

Defines a hotkey/keyboard shortcut for this anchor

charset = encoding

Specifies a character set used to encode the target document

coords = x_y coordinates

Specifies a list of coordinates indicating the shape of a link in an image map

href = url

Specifies the URL of the hyperlink target

hreflang = language_code

Specifies the language encoding for the target of the link

rel = relationship (same | next | parent | previous | string)

Indicates the relationship of the current document to the target document

rev = relationship

Indicates the reverse relationship of the target document to this one

shape = circ | circle | poly | polygon | rect | rectangle

Defines the shape of a region in an image map

tabindex = number

Defines this element's position in the tabbing order

target = <window_name> | _parent | _blank | _top | _self

Defines the name of the frame or window that should load the linked document

type = MIME_type

Defines the MIME type of the target

<abbr>

Indicates that the content of the element is an abbreviation.

<acronym>

Indicates that the content of the element is an acronym.

<address>

Indicates that the content of the element is an address.

<applet> (Deprecated)

Used to place a Java applet or executable code in the page.

Takes only the attributes listed in the table that follows.

align = top | middle | bottom | left | right | absmiddle | baseline | absbottom | texttop

Aligns the applet within the containing element

alt = text

Specifies alternative text to replace the <applet> for browsers that support the element, but are unable to execute it

archive = url

Specifies a class archive that must be downloaded to the browser and searched for

class = name

Specifies a class for the element to associate it with rules in a style sheet

code = classname

Specifies the class name of the code (required)

codebase = url

Specifies a URL from which the code can be downloaded

height = number

Specifies the height of the <applet> in pixels

hspace = number

Specifies the width to allow to the left and right of the <applet> in pixels

id = name

Specifies a unique ID for the element

name = name

Specifies the name of this instance of the applet

object = data

Specifies the filename of the compiled code to run

vspace = number

Specifies the height to allow to the top and bottom of the <applet> in pixels

width = number

Specifies the width of the <applet> in pixels

<area>

Used to specify coordinates for a clickable area or hotspot in an image map.

accesskey = key_character

Defines a hotkey/keyboard shortcut for this area

alt = text

Specifies alternative text for the area if the image cannot be loaded

coords = string

Specifies a list of coordinates for the area

href = url

Specifies the URL of the hyperlink target

name = string

Specifies a name for the element that can be used to identify it

nohref

Specifies that there is not a document associated with the area

shape = circ | circle | poly | polygon | rect | rectangle

Defines the shape of a region

tabindex = number

Defines this element's position in the tabbing order

target = <window_name> | _parent | _blank | _top| _self

Defines the name of the frame or window that should load the linked document

<b>

The content of the element should be displayed in a bold font.

<base>

Specifies a base URL for the links in a document.

Supports only the attributes listed in the table that follows.

href = url

Specifies the URL of the base for the links in this document

id = id

Specifies a unique identifier for the element

target = <window_name> | _parent | _blank | _top | _self

Defines the name of the frame or window that should load the linked document

<basefont> (Deprecated)

Specifies a base font to be the default font when rendering a document.

Supports only the attributes listed in the table that follows.

color = color

Specifies the color of text in this element

face = font_family_name

Specifies the font family in this element

size = value

Specifies the size of the font (required)

<bdo>

Turns off the bidirectional rendering algorithm for selected fragments of text.

dir = ltr | rtl

Specifies the font family in this element

<big>

Renders text in a font size larger than its containing element.

<blockquote>

The content of the element is a quotation. Usually used for a paragraph quote or longer (otherwise use the <q> element).

cite = url

Specifies a URL for the source of the quote

<body>

Specifies the start and end of the body section of a page.

alink = color

Specifies the color of active links

background = url

Specifies the URL for a background image to be used as wallpaper for the background of the whole document

bgcolor = color

Specifies a background color for the document

bgproperties = fixed

Image does not scroll with document content

link = color

Specifies the color of unvisited links

onload = script event handler

Specifies a script to run when the page loads

onunload = script event handler

Specifies a script to run when the page is unloaded

text = color

Specifies a color for the text in the document

vlink = color

Specifies the color of visited links

<br />

Inserts a line break.

Supports only the attributes listed in the table that follows.

class = name

Specifies a class for the element to associate it with rules in a style sheet

clear = left | right | none | all

Breaks the flow of the page and moves the break down until the specified margin is clear

id = id

Specifies a unique identifier for this element

style = style

Specifies inline CSS style rules for this element

title = string

Specifies a title for this element

<button>

Creates an HTML button. Any enclosed markup is used as the button's caption.

accesskey = key_character

Defines a hotkey/keyboard shortcut for this element

disabled = disabled

Disables the button, preventing user intervention

name = name

Specifies a name for the form control passed to the form's processing application as part of the name/value pair (required)

onblur = script

Specifies a script to run when the mouse moves off the button

onfocus = script

Specifies a script to run when the element gains focus

tabindex = number

Defines this element's position in the tabbing order

type = button | submit | reset

Specifies the type of button

value = string

Specifies the value of the parameter sent to the processing application as part of the name/value pair (required)

<caption>

The content of this element specifies a caption to be placed next to a table.

align = top|bottom | right | left

For IE this specifies the horizontal alignment of the caption; in Netscape it sets vertical position

valign = bottom | top

Specifies the vertical position of the caption

<center> (Deprecated)

The content of this element (and child elements) should be centered on the page.

<cite>

The content of the element is a citation and tends to be rendered in italics.

<code>

The content of the element is code and should be rendered in a fixed-width font.

<col>

Specifies column-based defaults for a table.

align = center | left | right | justify | char

Specifies the alignment of the column

bgcolor = color

Specifies a background color for the column

char = string

Specifies the alignment character for text within the cells

charoff = string

Specifies the offset character that the alignment character is set to

span = number

Number of columns affected by the <col> tag

valign = bottom | top

Specifies the vertical alignment of content within the element

width = number

Specifies the width of the column in pixels

<colgroup>

Used to contain a group of columns.

align = center | left | right | justify | char

Specifies the horizontal alignment of content within the column

bgcolor = color

Specifies the background color for the group of columns

char = string

Specifies the alignment character for text within the cells

charoff = string

Specifies the offset character that the alignment character is set to

valign = bottom | top

Specifies the vertical alignment of content within the element

width = number

Specifies the width of the column group in pixels

<dd>

The definition of an item in a definition list. This is usually indented from other text.

<del>

The content of the element has been marked as having been deleted from an earlier version of the document.

cite = url

Specifies a URL for justification of deletion

datetime = date

Specifies the date and time it was deleted

<dfn>

Defines an instance of a term.

<dir> (Deprecated)

The content of the element is rendered in a directory-style file list.

type = bullet

Specifies the type of bullet used to display the list

<div>

A containing element to hold other elements, defining a section of a page. This is a block-level container.

align = center | left | right

Specifies the alignment of text within the <div> element

nowrap = nowrap

Prevents word-wrapping within this <div> element

<dl>

Denotes a definition list.

compact = compact

Makes the list more vertically compact

<dt>

Denotes a definition term within a definition list.

<em>

The element content is emphasized text, and is usually rendered in an italic font.

<embed>

Embeds files in a page that require another supporting application.

align = absbottom | absmiddle | baseline | bottom | left | middle | right | texttop | top

Specifies the alignment within the containing element

border = number

Specifies the width of the border around the embedded object in pixels

height = number

Specifies the height of the embedded object in pixels

hidden = hidden

Specifies that the embedded object should be hidden

hspace = number

Specifies the amount of additional space to be added to the left and right of the embedded object

name = name

Specifies a name for the embedded object

palette=foreground | background

Sets foreground and background colors of the embedded object

pluginspage = url

Specifies the URL of the page where the plug-in associated with the object can be downloaded

src = url

Specifies the URL of the data to be used by the object

type = MIME_type

Specifies the MIME type of the data used by the object

units = en | ems | pixels

Sets units for height and width attributes

vpsace = number

Specifies the amount of additional space to be added above and below the embedded object

width = number

Specifies the width of the embedded object in pixels

<fieldset>

Creates a box around the contained elements indicating that they are related items in a form.

align = center | left | right

Specifies the alignment of the group of elements

tabindex = number

Defines this <fieldset>'s position in the tabbing order

<font> (Deprecated)

Specifies the typeface, size, and color of the font to be used for text within the element.

color = color

Specifies the color of text in this element

face = font_family_list

Specifies the family of font to be used for the text in this element

size = value

Specifies the size of the text used in this element

<form>

Containing element for form controls and elements.

accept-charset = list

Specifies a list of accepted character sets the processing application can handle

action = url

Specifies the URL of the processing application that will handle the form

enctype = encoding

Specifies the encoding method for form values

method = get | post

Specifies how the data gets sent from the browser to the processing application

onreset = script

Specifies a script that is run when the form values are reset

onsubmit = script

Specifies a script that is run before the form is submitted

target = <window_name> | _parent | _blank | _top | _self

Defines the name of the frame or window that should load the results of the form

<frame>

Specifies a frame within a frameset.

Supports only the attributes listed in the table that follows.

[event_name] = script

The intrinsic events supported by most elements

bordercolor = color

Specifies the color of the border of the frame

class = name

Specifies a class name to associate styles with the element

frameborder = no | yes | 0 | 1

Specifies the presence or absence of a frame border

id = string

Specifies a unique value for the element

lang = language_type

Specifies the language used for the content of the frame

longdesc = url

Specifies a URL for a description of the content of the frame

marginheight = number

Specifies the height of the margin for the frame in pixels

marginwidth = number

Specifies the width of the margin for the image in pixels

noresize = noresize

Specifies that the frame cannot be resized

scrolling = auto | yes | no

Specifies whether the frame can have scrollbars if the content does not fit in the space in the browser

style = style

Specifies inline CSS style rules

src = url

Specifies a URL for the location of the content for that frame

title = title

Specifies a title for the frame

<noframes>

The content of this element should be displayed if the browser does not support frames.

<frameset>

Specifies a frameset containing multiple frames (and possibly other nested framesets). This element replaces the <body> element in a document.

border = number

Specifies the width of the borders for each frame in the frameset

bordercolor = color

Specifies the color of the borders for frames in the frameset

cols = list

Specifies the number of columns in the frameset allowing you to control layout of the frameset

frameborder = no | yes | 0 | 1

Specifies whether borders will be present for the frames in this frameset

framespacing = number

Specifies the space between each frame in pixels

onblur = script

Specifies a script to run when the mouse moves off the frameset

onload = script

Specifies a script to run when the frameset loads

onunload = script

Specifies a script to run when the frameset is unloaded

rows = number

Specifies the number of rows in a frameset allowing you to control the layout of the frameset

<head>

Container element for heading information about the document; its content will not be displayed in the browser.

Supports only the attributes listed in the table that follows.

class = classname

Specifies a class to associate style rules with this element

dir = ltr | rtl

Specifies the direction of text within this element

Id = string

Specifies a unique identifier for this element

lang = language_type

Specifies the language used in this element

profile = url

Specifies a URL for a profile of the document

xml:lang = language_type

Specifies the language used in this element

<hn>

Headings from <h1> (largest) through <h6> (smallest).

align = left | center | right

Specifies the horizontal alignment of the header within its containing element

<hr />

Creates a horizontal rule across the page (or containing element).

Supports only the attributes listed in the table that follows.

[event_name] = script

The intrinsic events supported by most elements

align = center | left | right

Specifies the horizontal alignment of the rule

class = classname

Specifies a class for the element to associate it with rules in a style sheet

color = color

Specifies the color of the horizontal rule

dir = ltr | rtl

Specifies the direction of the text

id = string

Specifies a unique identifier for this element

noshade = noshade

Specifies that there should not be a 3D shading on the rule

style = string

Specifies inline CSS style rules for the element

title = string

Specifies a title for the element

width = number

Specifies the width of the rule in pixels or as a percentage of the containing element

<html>

Containing element for an HTML or XHTML page.

class = classname

Specifies a class for the element to associate it with rules in a style sheet

dir = ltr | rtl

Specifies the direction of the text within the element

id = string

Specifies a unique identifier for this element

lang = language_type

Specifies the language used in this element

version = url

Specifies the version of HTML used in the document — replaced by the DOCTYPE declaration in XHTML

xmlns = uri

Specifies namespaces used in XHTML documents

xml:lang = language_type

Specifies the language used in this element

<i>

The content of this element should be rendered in an italic font.

<iframe>

Creates an inline floating frame within a page.

align = absbottom | absmiddle | baseline | bottom | top | left | middle | right | texttop | top

Specifies the alignment of the frame in relation to surrounding content or margins

frameborder = no | yes | 0 | 1

Specifies the presence of a border: 1 enables borders, 0 disables them

height = number

Specifies the height of the frame in pixels

longdesc = url

Specifies a URL for a description of the content of the frame

Marginheight = number

Specifies the space above and below the frame and surrounding content in pixels

marginwidth = number

Specifies the space to the left and right of the frame and surrounding content in pixels

scrolling = auto | yes | no

Specifies whether scrollbars should be allowed to appear if the content is too large for the frame

src = url

Specifies the URL of the file to be displayed in the frame

width = number

Specifies the width of the frame in pixels

<img>

Embeds an image within a document.

align = absbottom | absmiddle | baseline | bottom | top | left | middle | right | texttop | top

Specifies the alignment of the image in relation to the content that surrounds it

alt = text

Specifies alternative text if the application is unable to load the image (required); also used in accessibility devices

border = number

Specifies the width of the border of the image in pixels — you must use this property if the image is a link, to prevent borders from appearing

height = number

Specifies the height of the image in pixels

hspace = number

Specifies the amount of additional space to be added to the left and right of the image

ismap = ismap

Specifies whether the image is a server-side image map

longdesc = url

Specifies a URL for a description of the content of the image

loop = number

Specifies the number of times the video should be played; can take a value of infinite

lowsrc = url

Specifies a URL for a low-resolution version of the image that can be displayed while the full image is loading

name = name

Specifies a name for the element

onabort = script

Specifies a script to run if loading of the image is aborted

onerror = script

Specifies a script to run if there is an error loading the image

onload = script

Specifies a script to run when the image has loaded

src = url

Specifies the URL of the image

usemap = url

Specifies the map containing coordinates and links that define the links for the image (server-side image map)

vspace = number

Specifies the amount of additional space to be added above and below the image

width = name

Specifies the width of the image

<input type="button">

Creates a form input control that is a button a user can click.

accesskey = key_character

Defines a hotkey/keyboard shortcut for the button

disabled = disabled

Disables the button, preventing user intervention

name = name

Specifies a name for the form control passed to the form's processing application as part of the name/value pair (required)

tabindex = number

Defines this element's position in the tabbing order

value = string

Specifies the value of the parameter sent to the processing application as part of the name/value pair

<input type="checkbox">

Creates a form input control that is a checkbox a user can check.

accesskey = key_character

Defines a hotkey/keyboard shortcut for the checkbox

checked = checked

Specifies that the checkbox is checked (can be used to make the checkbox selected by default)

disabled = disabled

Disables the checkbox, preventing user intervention

name = name

Specifies a name for the form control passed to the form's processing application as part of the name/value pair (required)

readonly = readonly

Prevents user from modifying content

tabindex = number

Defines this element's position in the tabbing order

value = string

Specifies the value of the control sent to the processing application as part of the name/value pair

<input type="file">

Creates a form input control that allows a user to select a file.

accesskey = key_character

Defines a hotkey/keyboard shortcut for this file input

disabled = disabled

Disables the file upload control, preventing user intervention

maxlength = number

Maximum number of characters the user may enter

name = name

Specifies a name for the form control passed to the form's processing application as part of the name/value pair (required)

onblur = script

Specifies a script to run when the mouse leaves the control

onchange = script

Specifies a script to run when the value of the element changes

onfocus = script

Specifies a script to run when the element gains focus

readonly = readonly

Prevents user from modifying content

size = number

Specifies the number of characters to display for the element

tabindex = number

Defines this element's position in the tabbing order

value = string

Specifies the value of the control sent to the processing application as part of the name/value pair

<input type="hidden">

Creates a form input control, similar to a text input, but is hidden from the user's view (although the value can still be seen if the user views the source for the page).

name = name

Specifies a name for the form control passed to the form's processing application as part of the name/value pair (required)

value = string

Specifies the value of the control sent to the processing application as part of the name/value pair

<input type="image">

Creates a form input control that is like a button or submit control, but uses an image instead of a button.

accesskey = key_character

Defines a hotkey/keyboard shortcut for this image button

align = center | left | right

Specifies the alignment of the image

alt = string

Provides alternative text for the image

border = number

Specifies the width of the border in pixels

disabled = disabled

Disables the image button, preventing user intervention

name = name

Specifies a name for the form control passed to the form's processing application as part of the name/value pair (required)

src = url

Specifies the source of the image

readonly = readonly

Prevents user from modifying content

tabindex = number

Defines this element's position in the tabbing order

value = string

Specifies the value of the control sent to the processing application as part of the name/value pair

<input type="password">

Creates a form input control that is like a single-line text input control but shows asterisks or bullet marks rather than the characters to prevent an onlooker from seeing the values a user has entered. This should be used for sensitive information — although you should note that the values get passed to the servers as plain text. (If you have sensitive information, you should still consider making submissions safe using a technique such as SSL.)

accesskey = key_character

Defines a hotkey/keyboard shortcut for this element

disabled = disabled

Disables the text input, preventing user intervention

maxlength = number

Maximum number of characters the user can enter

name = name

Specifies a name for the form control passed to the form's processing application as part of the name/value pair (required)

onblur = script

Specifies a script to run when the mouse moves off the element

onchange = script

Specifies a script to run when the value of the element changes

onfocus = script

Specifies a script to run when the element gains focus

onselect = script

Specifies a script to run when the user selects this element

readonly = readonly

Prevents user from modifying content

size = number

Specifies the width of the input in numbers of characters

tabindex = number

Defines this element's position in the tabbing order

value = string

Specifies the value of the control sent to the processing application as part of the name/value pair

<input type="radio">

Creates a form input control that is a radio button. These appear in groups that share the same value for the name attribute and create mutually exclusive groups of values (only one of the radio buttons in the group can be selected).

accesskey = key_character

Defines a hotkey/keyboard shortcut for this radio button

checked = checked

Specifies that the default condition for this radio button is checked

disabled = disabled

Disables the radio button, preventing user intervention

name = name

Specifies a name for the form control passed to the form's processing application as part of the name/value pair (required)

readonly = readonly

Prevents user from modifying content

tabindex = number

Defines this element's position in the tabbing order

value = string

Specifies the value of the control sent to the processing application as part of the name/value pair

<input type="reset">

Creates a form input control that is a button to reset the values of the form to the same values present when the page loaded.

accesskey = key_character

Defines a hotkey/keyboard shortcut for this button

disabled = disabled

Disables the button, preventing user intervention

tabindex = number

Defines this element's position in the tabbing order

value = string

Specifies the value of the control sent to the processing application as part of the name/value pair

<input type="submit">

Creates a form input control that is a Submit button to send the form values to the server.

accesskey = key_character

Defines a hotkey/keyboard shortcut for this element

disabled = disabled

Disables the button, preventing user intervention

name = name

Specifies a name for the form control passed to the form's processing application as part of the name/value pair

tabindex = number

Defines this element's position in the tabbing order

value = string

Specifies the value of the control sent to the processing application as part of the name/value pair

<input type="text">

Creates a form input control that is a single-line text input.

accesskey = key_character

Defines a hotkey/keyboard shortcut for this element

disabled = disabled

Disables the text input, preventing user intervention

maxlength = number

Maximum number of characters the user can enter

name = name

Specifies a name for the form control passed to the form's processing application as part of the name/value pair (required)

onblur = script

Specifies a script to run when the mouse moves off the element

onchange = script

Specifies a script to run when the value of the element changes

onfocus = script

Specifies a script to run when the element gains focus

onselect = script

Specifies a script to run when the element is selected

readonly = readonly

Prevents user from modifying content

size = number

Specifies the width of the control in characters

tabindex = number

Defines this element's position in the tabbing order

value = string

Specifies the value of the control sent to the processing application as part of the name/value pair

<ins>

The content of the element has been added since an earlier version of the document.

cite = url

Specifies a URL indicating why the content was added

datetime = date

Specifies a date and time for the addition of content

<isindex> (Deprecated)

Creates a single-line text input; you should use the <input> element instead. Only the attributes listed in the table that follows are supported.

accesskey = key_character

Defines a hotkey/keyboard shortcut for this element

action = url

IE specifies only the URL of the search application

class = classname

Specifies a class for the element to associate it with rules in a style sheet

dir = ltr | rtl

Specifies the direction of the text within the element

id = string

Specifies a unique identifier for this element

lang = language_type

Specifies the language used in this element

prompt = string

Specifies an alternative prompt for the field input

style = string

Specifies inline CSS style rules for the element

tabindex = number

Defines this element's position in the tabbing order

title = string

Specifies a title for the element

xml:lang = language_type

Specifies the language used in this element

<kbd>

The content of the element is something that should be entered on a keyboard, and is rendered in a fixed-width font.

<label>

The content of the element is used as a label for a form element.

accesskey = key_character

Defines a hotkey/keyboard shortcut for this element

for = name

Specifies the value of the id attribute for the element it is a label for

onblur = script

Specifies a script to run when the mouse moves off the label

onfocus = string

Specifies a script to run when the label gains focus

<legend>

The content of this element is the title text to place in a <fieldset>. It could be used in HTML 5 to provide a title for <figure> and <details> elements.

accesskey = key_character

Defines a hotkey/keyboard shortcut for this element

align = top | left | bottom | right

Specifies the position of the legend in relation to the fieldset

<li>

The content of this element is an item in a list. The element is referred to as a line item. For appropriate attributes, see the parent element for that kind of list (<ul>, <ol>, <menu>).

type = bullet_type

Specifies the type of bullet used to display the list items

value = number

Specifies the number the list will start with

<link>

Defines a link between the document and another resource. Often used to include style sheets in documents.

Takes only the attributes listed in the table that follows.

charset = character_set

Specifies a character set used to encode the linked file

href = url

Specifies the URL of the linked document

hreflang = language_type

Specifies the language encoding for the target of the link

media = list

Types of media the document is intended for

rel = same | next | parent | previous | string

Indicates the relationship of the document to the target document

rev = relation

Indicates the reverse relationship of the target document to this one

type = type

Specifies the MIME type of the document being linked to

<map>

Creates a client-side image map and specifies a collection of clickable areas or hotspots.

name = string

Name of the map (required)

<menu> (Deprecated)

Creates a menu list and renders the child elements as individual items. Replaced by lists (<ol> and <ul>). Deprecated in HTML 4.01.

<meta>

Allows for information about the document or instructions for the browser; these are not displayed to the user.

Takes only the attributes listed in the table that follows.

charset = character_set

Specifies a character set used to encode the document

content= meta_content

Specifies the value for the meta-information

dir = ltr | rtl

Specifies the direction of the text within the element

http-equiv = string

Specifies the HTTP equivalent name for the meta-information; causes the server to include the name and content in the HTTP header

lang = language_type

Specifies the language used in this element

name = string

Specifies the name of the meta-information

scheme = scheme

Specifies the profile scheme used to interpret the property

xml:lang = language_type

Specifies the language used in this element

<noframes>

The content of the element is displayed for browsers that do not support frames.

<noscript>

The content of the element is displayed for browsers that do not support the script. Most browsers will also display this content if scripting is disabled.

<object>

Adds an object or non-HTML control to the page. Will be the standard way of including images in the future.

align = absbottom | absmiddle | baseline | bottom | left | middle | right | texttop | top

Specifies the position of an object in relation to surrounding text

archive = url

Specifies a list of URLs for archives or resources used by the object

border = number

Specifies the width of the border in pixels

classid = url

Specifies the URL of the object

codebase = url

Specifies the URL of the code required to run the object

codetype = MIME-type

Specifies the MIME type of the code base

data = url

Specifies the data for the object

declare

Declares an object without instantiating it

height = number

Specifies the height of the object in pixels

hspace = number

Specifies the amount of additional space to be added to the left and right of the embedded object

name = name

Specifies a name for the object

shapes = shapes

Specifies that the object has shaped hyperlinks

standby = string

Defines a message to display while the object is loading

tabindex = number

Defines this element's position in the tabbing order

type = MIME type

Specifies the MIME type for the object's data

usemap = url

Defines an image map for use with the object

vspace = number

Specifies the amount of additional space to be added above and below the embedded object

width = number

Specifies the object's width in pixels

<ol>

Creates an ordered or numbered list.

compact = compact

Attempts to make the list more vertically compact

start = number

Specifies the number with which the list should start

type = bullet_type

Specifies the type of bullet used to display the list items

<optgroup>

Used to group <option> elements in a select box.

disabled = disabled

Disables the group, preventing user intervention

label = string

Specifies a label for the option group

<option>

Contains one choice in a drop-down list or select box.

disabled = disabled

Disables the option, preventing user intervention

label = string

Specifies a label for the option

selected = selected

Indicates that the option should be selected by default when the page loads

value = string

Specifies the value of this option in the form control sent to the processing application as part of the name/value pair

<p>

The content of this element is a paragraph.

align = center | left | right

Specifies the alignment of the text within the paragraph

<param>

Used as a child of an <object> or <applet> element to set properties of the object. See the <object> or <applet> elements for details.

<pre>

The content of this element is rendered in a fixed-width type that retains the formatting (such as spaces and line breaks) in the code.

width = number

Specifies the width of the preformatted area in pixels

<q>

The content of the element is a short quotation.

cite = url

Specifies the URL for the content of the quote in question

<s> (Deprecated)

The content of the element should be rendered with strikethrough.

<samp>

The content of the element is a sample code listing. Usually rendered in a smaller fixed-width font.

<script>

The content of the element is a script code that the browser should execute.

charset = encoding

Specifies a character set used to encode the script

defer = defer

Defers execution of the script

language = name

Specifies the language used in this element

src = url

URL for the location of the script file

type = encoding

Specifies the MIME type of the script

<select>

Creates a select or drop-down list box.

disabled = disabled

Disables the select box, preventing user intervention

multiple = multiple

Permits selection of multiple items from the list

name = name

Specifies a name for the form control passed to the form's processing application as part of the name/value pair (required)

onblur = script

Specifies a script to run when the mouse moves off the control

onchange = script

Specifies a script to run when the value of the element changes

onfocus = script

Specifies a script to run when the element gains focus

size = number

Specifies the number of items that may appear at once

tabindex = number

Defines this element's position in the tabbing order

<small>

The content of this element should be displayed in a smaller font than its containing element.

<span>

Used as a grouping element for inline elements (as opposed to block-level elements); also allows for the definition of non-standard attributes for text on a page.

<strike> (Deprecated)

The content of this element should be rendered in strikethrough.

<strong>

The content of this element has strong emphasis and should be rendered in a bold typeface.

<style>

Contains CSS style rules that apply to that page.

<sub>

The content of this element is displayed as subscript.

<sup>

The content of this element is rendered as superscript.

<table>

Creates a table.

align = center | left | right

Specifies the alignment of the table within its content

background = url

Specifies a URL for a background image

bgcolor = color

Specifies a background color for the table

border = number

Specifies the width of the border in pixels

bordercolor = color

Specifies the color of the border

bordercolordark = color

Specifies the darker border color

bordercolorlight = color

Specifies the lighter border color

cellpadding = number

Specifies the distance between the border and its content in pixels

cellspacing = number

Specifies the distance between the cells in pixels

cols = number

Specifies the number of columns in the table

frame = above | below | border | box | hsides | lhs | rhs | void | vsides

Defines where the borders are displayed

height = number

Specifies the height of the table in pixels

hspace = number

Specifies the amount of additional space to be added to the left and right of the table

nowrap = nowrap

Prevents the content of the table from wrapping

rules = all | cols | groups | none | rows

Specifies where the inner dividers are drawn

summary = string

Offers a summary description of the table

valign = bottom | top

Specifies the alignment of content in the table

vspace = number

Specifies the amount of additional space to be added above and below the table

width = number

Specifies the width of the table in pixels

<tbody>

Denotes the body section of a table.

align = center | left | right

Specifies the alignment of the content of the body of the table

char = string

Specifies an offset character for alignment

charoff = string

Specifies the offset within the cells from the offset character

valign = bottom | top

Specifies the vertical alignment of content in the body of the table

width = number

Specifies the width of the table body in pixels

<td>

Creates a cell of a table.

abbr = string

Specifies an abbreviation for the cell's content

align = center | left | right

Specifies the alignment of the content of the cell

axis = string

Specifies a name for a related group of cells

background = url

Specifies a URL for a background image for the cell

bgcolor = color

Specifies the background color of the cell

border = number

Specifies the border width of the cell in pixels

bordercolor = color

Specifies the border color of the cell

bordercolordark= color

Specifies the dark border color of the cell

bordercolorlight= color

Specifies the light border color of the cell

char = string

Specifies the cell alignment character

charoff = string

Specifies the offset from the cell alignment character

colspan = number

Specifies the number of columns this cell spans

headers = string

Specifies the names of header cells associated with this cell

height = number

Specifies the height of the cell in pixels

nowrap = nowrap

Prevents the content of the cell from wrapping

rowspan = number

Specifies the number of rows the cell spans

scope = row | col | rowgroup | colgroup

Specifies the scope of a header cell

valign = bottom | top

Specifies vertical alignment of the content of the cell

width = number

Specifies the width of the cell in pixels

<textarea>

Creates a multiple-line text input control in a form.

accesskey= key_character

Defines a hotkey/keyboard shortcut for this form control

cols = number

Specifies the number of columns of characters the text area should be (the width in characters)

disabled = disabled

Disables the text area, preventing user intervention

name = string

Specifies a name for the form control passed to the form's processing application as part of the name/value pair (required)

onblur = script

Specifies a script to run when the mouse moves off the text area

onchange = script

Specifies a script to run when the value of the element changes

onfocus = script

Specifies a script to run when the element gains focus

onselect = script

Specifies a script to run when the text area is selected

readonly = readonly

Prevents the user from modifying content

rows = number

Specifies the number of rows of text that should appear in the text area without the scrollbar appearing

tabindex = number

Defines this element's position in the tabbing order

wrap = physical _ vertical _ off

Specifies whether the text in a text area should wrap or continue on the same line when width of text area is reached

<tfoot>

Denotes row or rows of a table to be used as a footer for the table.

align = center | left | right

Specifies the alignment of the content of the footer of the table

char = string

Specifies an offset character for alignment

charoff = string

Specifies the offset within the cells from the offset character

valign = bottom | top

Specifies the vertical alignment of content in the foot of the table

width = number

Specifies the width of the table body in pixels

<thead>

Denotes row or rows of a table to be used as a header for the table.

align = center | left | right

Specifies the alignment of the content of the head of the table

char = string

Specifies an offset character for alignment

charoff = string

Specifies the offset within the cells of the alignment position

valign = bottom | top

Specifies the vertical alignment of content in the head of the table

width = number

Specifies the width of the table body in pixels

<th>

Denotes a header cell of a table. By default, content is often shown in bold font.

abbr = string

Specifies an abbreviation for the cell's content

align = center | left | right

Specifies the alignment of the content of the cell

axis = string

Specifies a name for a related group of cells

background = url

Specifies a URL for a background image for the cell

bgcolor = color

Specifies the background color of the cell

border = number

Specifies the border width of the cell in pixels

bordercolor = color

Specifies the border color of the cell

bordercolordark= color

Specifies the dark border color of the cell

bordercolorlight= color

Specifies the light border color of the cell

char = string

Specifies the cell alignment character

charoff = string

Specifies the offset from the cell alignment character

colspan = number

Specifies the number of columns this cell spans

headers = string

Specifies the names of header cells associated with this cell

height = number

Specifies the height of the cell in pixels

nowrap

Prevents the content of the cell from wrapping

rowspan = number

Specifies the number of rows the cell spans

scope = row | col | rowgroup | colgroup

Specifies the scope of a header cell

valign = bottom | top

Specifies vertical alignment of the content of the cell

width = number

Specifies the width of the cell in pixels

<title>

The content of this element is the title of the document and will usually be rendered in the top title bar of the browser; it may only live in the head of the page. Supports only the attributes listed in the table that follows.

dir = ltr | rtl

Specifies the direction of the text within the element

id = string

Specifies a unique identifier for this element

lang = language_type

Specifies the language used in this element

xml:lang = language_type

Specifies the language used in this element

<tr>

Denotes a row of a table.

align = center | left | right

Specifies the alignment of the content of the row

background = url

Specifies a URL for a background image for the row

bgcolor = color

Specifies the background color of the row

border = number

Specifies the border width of the row in pixels

bordercolor = color

Specifies the border color of the row

bordercolordark= color

Specifies the dark border color of the row

bordercolorlight= color

Specifies the light border color of the row

char = string

Specifies the row alignment character

charoff = string

Specifies the offset from the row alignment character

nowrap = nowrap

Prevents the content of the cell from wrapping

valign = bottom | top

Specifies vertical alignment of the content of the cell

<tt>

The content of this element is rendered in a fixed-width font, as if on a teletype device.

<u> (Deprecated)

The content of this element is rendered with underlined text.

<ul>

Creates an unordered list.

compact = compact

Attempts to make the list more compact vertically

type = bullet_type

Specifies the type of bullet used to display the list items

<var>

The content of this element is a programming variable, and is usually rendered in a small fixed-width font.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.117.171.181