Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống
1
/ 50 trang
THÔNG TIN TÀI LIỆU
Thông tin cơ bản
Định dạng
Số trang
50
Dung lượng
292,01 KB
Nội dung
<button> (IE4+, N3+, FF1+)
Creates an HTML button. Any enclosed markup is used as the button’s caption.
<caption> (all)
The content of this element specifies a caption to be placed next to a table.
<center> Deprecated (all)
The content of this element (and child elements) should be centered on the page.
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
accesskey = key_character Defines a hotkey/keyboard shortcut for this
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)
571
Appendix B: XHTML Element Reference
59313bapp02.qxd:WroxPro 3/23/08 1:50 PM Page 571
Please purchase PDF Split-Merge on www.verypdf.com to remove this watermark.
<cite> (all)
The content of the element is a citation and tends to be rendered in italics.
<code> (all)
The content of the element is code and should be rendered in a fixed width font.
<col> (IE3+, N4+, FF1+)
Specifies column-based defaults for a table.
<colgroup> (IE3+, N4+, FF1+)
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
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
572
Appendix B: XHTML Element Reference
59313bapp02.qxd:WroxPro 3/23/08 1:50 PM Page 572
Please purchase PDF Split-Merge on www.verypdf.com to remove this watermark.
<comment> (IE4+ only)
The content is a comment that will not be displayed (IE4+ only — not part of HTML or XHTML).
Supports only the attributes shown in the table that follows.
<dd> (all)
The definition of an item in a definition list. This is usually indented from other text.
<del> (IE4+, N6+, FF1+)
The content of the element has been deleted from an earlier version of the document.
<dfn> (all)
Defines an instance of a term.
cite = url Specifies a URL for justification of deletion
datetime = date Specifies the date and time it was deleted
id = string Specifies a unique identifier for the element
Lang = language_type Specifies the language of the comment
xml:lang = language_type Specifies the language of the comment
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
573
Appendix B: XHTML Element Reference
59313bapp02.qxd:WroxPro 3/23/08 1:50 PM Page 573
Please purchase PDF Split-Merge on www.verypdf.com to remove this watermark.
<dir> Deprecated (all)
The content of the element is rendered in a directory-style file list.
<li> (all)
<div> (all)
A containing element to hold other elements, defining a section of a page. This is a block-level container.
<dl> (all)
Denotes a definition list.
<dt> (all)
Denotes a definition term within a definition list.
<em> (all)
The element content is emphasized text, and is usually rendered in an italic font.
type = bullet Specifies the type of bullet used to display the list
type = format Specifies the type of bullet used to display the list item
value = number Specifies the number of the list item
compact = compact Makes the list more vertically compact
align = center | left | right Specifies the alignment of text within the <div> element
nowrap = nowrap Prevents word-wrapping within this <div> element
574
Appendix B: XHTML Element Reference
59313bapp02.qxd:WroxPro 3/23/08 1:50 PM Page 574
Please purchase PDF Split-Merge on www.verypdf.com to remove this watermark.
<embed> (all)
Embeds documents in a page that require another supporting application.
<fieldset> (IE4+, N6+, FF1+)
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
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
575
Appendix B: XHTML Element Reference
59313bapp02.qxd:WroxPro 3/23/08 1:50 PM Page 575
Please purchase PDF Split-Merge on www.verypdf.com to remove this watermark.
<font> Deprecated (all)
Specifies the typeface, size, and color of the font to be used for text within the element.
<form> (all)
Containing element for form controls and elements.
<frame> (all)
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
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
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
576
Appendix B: XHTML Element Reference
59313bapp02.qxd:WroxPro 3/23/08 1:50 PM Page 576
Please purchase PDF Split-Merge on www.verypdf.com to remove this watermark.
<noframes> (all)
The content of this element should be displayed if the browser does not support frames.
<frameset> (all)
Specifies a frameset containing multiple frames (and possibly other nested framesets). This element
replaces the
<body> element in a document.
Continued
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
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
577
Appendix B: XHTML Element Reference
59313bapp02.qxd:WroxPro 3/23/08 1:50 PM Page 577
Please purchase PDF Split-Merge on www.verypdf.com to remove this watermark.
<head> (all)
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.
<hn> (all)
Headings from <h1> (largest) through <h6> (smallest).
align = left | center | right Specifies the horizontal alignment of the header within its
containing element
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
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
578
Appendix B: XHTML Element Reference
59313bapp02.qxd:WroxPro 3/23/08 1:50 PM Page 578
Please purchase PDF Split-Merge on www.verypdf.com to remove this watermark.
<hr /> (all)
Creates a horizontal rule across the page (or containing element).
Supports only the attributes listed in the table that follows.
<html> (all)
Containing element for an HTML or XHTML page.
Continued
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
[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
579
Appendix B: XHTML Element Reference
59313bapp02.qxd:WroxPro 3/23/08 1:50 PM Page 579
Please purchase PDF Split-Merge on www.verypdf.com to remove this watermark.
<i> (all)
The content of this element should be rendered in an italic font.
<iframe> (IE3+, N6+, FF1+)
Creates an inline floating frame within a page.
<img> (all)
Embeds an image within a document.
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
xmlns = uri Specifies namespaces used in XHTML documents
xml:lang = language_type Specifies the language used in this element
580
Appendix B: XHTML Element Reference
59313bapp02.qxd:WroxPro 3/23/08 1:50 PM Page 580
Please purchase PDF Split-Merge on www.verypdf.com to remove this watermark.
[...]... number Specifies the number the list will start with (all) 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... 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 Deprecated (IE3+) The content of... item (IE3+, N6+, FF1+) The content of this element is a programming variable, and is usually rendered in a small fixed-width font (IE3, N2, N3, N4) Creates a soft line break within a element Deprecated (all) The content of this element is rendered in a fixed-width typeface, for example or sample code Replaced by and elements 606 Please purchase PDF Split-Merge on... clipping region left = number Specifies the position of the layer’s left edge from the containing document or layer Name = name Specifies the name for the layer src = url Specifies another document as the content of the layer top = number Specifies the position of the layer from the top of the containing document or layer visibility=show | hide | inherit Specifies whether the layer should be visible... 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... identifiers that would have been used by HTML editing software so that it knew the next document’s ID in a series of documents (was part of the HTML 2.0 specification only, not implemented by browsers) Takes only the attribute listed in the table that follows n = string Sets the nextid number (all) Means “no break,” and prevents the content of the element from wrapping onto a new line (N2,... 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 notab = notab Specifies that this element does not take part in the tabbing order for the document shapes = shapes Specifies... 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... XHTML Element Reference (all) 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... entered on a keyboard, and is rendered in a fixed-width font (Netscape only, N3+) Used to generate key material in the page — key material referring to encryption keys for security Takes only the attributes listed in the table that follows challenge = string Provides a challenge string to be packaged with the key class = classname Specifies a class for the element to associate it with rules in a . 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. (IE3+, N6+, FF1+)
Creates an inline floating frame within a page.
<img> (all)
Embeds an image within a document.
align = absbottom |
absmiddle | baseline