Web Programming with HTML, XHTML, and CSS Second Edition- P13
lượt xem 53
download
Web Programming with HTML, XHTML, and CSS Second Edition- P13: Điều này bắt đầu hướng dẫn nhận xét HTML và cũng giới thiệu đến bạn bằng cách sử dụng XHTML cho cấu trúc của một trang web và cascading style sheets (CSS) để kiểm soát như thế nào một tài liệu sẽ xuất hiện trên một trang web. Bạn se tìm hiểu làm thế nào để tận dụng lợi thế của các tính năng mới của các trình duyệt trong khi đảm bảo rằng các trang của bạn vẫn làm việc ở cũ, nhưng phổ biến, các trình duyệt. Bằng...
Bình luận(0) Đăng nhập để gửi bình luận!
Nội dung Text: Web Programming with HTML, XHTML, and CSS Second Edition- P13
- Appendix B: XHTML Element Reference (IE4+, N3+, FF1+) Creates an HTML button. Any enclosed markup is used as the button’s 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 | Specifies the type of button reset value = string Specifies the value of the parameter sent to the processing application as part of the name/value pair (required) (all) The content of this element specifies a caption to be placed next to a table. align = top|_ bottom | right | For IE this specifies the horizontal alignment of the caption; in left Netscape it sets vertical position valign = bottom | top Specifies the vertical position of the caption Deprecated (all) The content of this element (and child elements) should be centered on the page. 571
- Appendix B: XHTML Element Reference (all) The content of the element is a citation and tends to be rendered in italics. (all) The content of the element is code and should be rendered in a fixed width font. (IE3+, N4+, FF1+) Specifies column-based defaults for a table. align = center | left | Specifies the alignment of the column right | justify | char 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 tag valign = bottom | top Specifies the vertical alignment of content within the element width = number Specifies the width of the column in pixels (IE3+, N4+, FF1+) Used to contain a group of columns. align = center | left | Specifies the horizontal alignment of content within the right | justify | char column bgcolor = color Specifies the background color for the group of columns char = string Specifies the alignment character for text within the cells 572
- Appendix B: XHTML Element Reference 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 (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. 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 (all) The definition of an item in a definition list. This is usually indented from other text. (IE4+, N6+, FF1+) The content of the element has 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 (all) Defines an instance of a term. 573
- Appendix B: XHTML Element Reference Deprecated (all) 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 (all) type = format Specifies the type of bullet used to display the list item value = number Specifies the number of the list item (all) 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 element nowrap = nowrap Prevents word-wrapping within this element (all) Denotes a definition list. compact = compact Makes the list more vertically compact (all) Denotes a definition term within a definition list. (all) The element content is emphasized text, and is usually rendered in an italic font. 574
- Appendix B: XHTML Element Reference (all) Embeds documents in a page that require another supporting application. align = absbottom | Specifies the alignment within the containing element absmiddle | baseline | bottom | left | middle | right | texttop | top 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 | Sets foreground and background colors of the embedded background 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 (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 ’s position in the tabbing order 575
- Appendix B: XHTML Element Reference Deprecated (all) 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 (all) 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 = | Defines the name of the frame or window that should load _parent | _blank | _top | the results of the form _self (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 576
- Appendix B: XHTML Element Reference 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 (all) The content of this element should be displayed if the browser does not support frames. (all) Specifies a frameset containing multiple frames (and possibly other nested framesets). This element replaces the 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 Continued 577
- Appendix B: XHTML Element Reference 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 (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. 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 (all) Headings from (largest) through (smallest). align = left | center | right Specifies the horizontal alignment of the header within its containing element 578
- Appendix B: XHTML Element Reference (all) 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 (all) 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 Continued 579
- Appendix B: XHTML Element Reference xmlns = uri Specifies namespaces used in XHTML documents xml:lang = language_type Specifies the language used in this element (all) The content of this element should be rendered in an italic font. (IE3+, N6+, FF1+) Creates an inline floating frame within a page. align = absbottom | Specifies the alignment of the frame in relation to surrounding absmiddle | baseline | content or margins bottom | top | left | middle | right | texttop | top 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 (all) Embeds an image within a document. 580
- Appendix B: XHTML Element Reference align = absbottom | Specifies the alignment of the image in relation to the content absmiddle | baseline | that surrounds it bottom | top | left | middle | right | texttop | top 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 controls Displays playback controls for video clips (IE3 only) dynsrc = url Specifies the URL of a video clip to be played 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 start=fileopen mouseover _ Specifies when to play a video clip number usemap = url Specifies the map containing coordinates and links that define the links for the image (server-side image map) Continued 581
- Appendix B: XHTML Element Reference vspace = number Specifies the amount of additional space to be added above and below the image width = name Specifies the width of the image (all) Creates a form input control that is a button a user can click. 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) notab = notab Specifies that this element does not take part in the tabbing order for the document tabindex = number Defines this element’s position in the tabbing order taborder = number Specifies the 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 (all) Creates a form input control that is a checkbox a user can check. accesskey = key_character Defines a hotkey/keyboard shortcut for this 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) 582
- Appendix B: XHTML Element Reference notab = notab Specifies that this element does not take part in the tabbing order for the document readonly = readonly Prevents user from modifying content tabindex = number Defines this element’s position in the tabbing order taborder = number Specifies the 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 (all) Creates a form input control that allows a user to select a file. accesskey = key_character Defines a hotkey/keyboard shortcut for this 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) notab = notab Specifies that this element does not take part in the tabbing order for the document 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 taborder = number Specifies the 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 583
- Appendix B: XHTML Element Reference (all) 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 (all) 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 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) notab = notab Specifies that this element does not take part in the tabbing order for the document 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 taborder = number Specifies the 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 584
- Appendix B: XHTML Element Reference (all) 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 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) notab = notab Specifies that this element does not take part in the tabbing order for the document 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 taborder = number Specifies the 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 (all) 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). 585
- Appendix B: XHTML Element Reference accesskey = key_character Defines a hotkey/keyboard shortcut for this 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) notab = notab Specifies that this element does not take part in the tabbing order for the document readonly = readonly Prevents user from modifying content tabindex = number Defines this element’s position in the tabbing order taborder = number Specifies the 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 (all) 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 disabled = disabled Disables the button, preventing user intervention notab = notab Specifies that this element does not take part in the tabbing order for the document tabindex = number Defines this element’s position in the tabbing order taborder = number Specifies the 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 586
- Appendix B: XHTML Element Reference (all) 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 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 notab = notab Specifies that this element does not take part in the tabbing order for the document tabindex = number Defines this element’s position in the tabbing order taborder = number Specifies the 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 (all) Creates a form input control that is a single-line text input. accesskey = key_character Defines a hotkey/keyboard shortcut for this 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) notab = notab Specifies that this element does not take part in the tabbing order for the document 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 Continued 587
- Appendix B: XHTML Element Reference 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 taborder = number Specifies the 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 (IE4+, N6+, FF1+) 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 Deprecated (all) Identifies a searchable index. Only the attributes listed in the table that follows are supported. accesskey = key_character Defines a hotkey/keyboard shortcut for this action = url IE only specifies 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 588
- Appendix B: XHTML Element Reference 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 (all) The content of the element is something that should be 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 style sheet id = string Specifies a unique identifier for this element name = string Specifies a name for the element (IE4+, N6+, FF1+) The content of the element is used as a label for a form element. accesskey = key_character Defines a hotkey/keyboard shortcut for this 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 589
- Appendix B: XHTML Element Reference (Netscape only, N4+) Defines an area of a page that can hold a different page. Netscape-specific; not covered in this book. above = name Positions this layer above the named layer background = url Specifies the URL for a background image for the layer below = name Positions this layer below the named layer bgcolor = color Sets the background color for the layer clip = number [, number, Specifies the layer’s clipping region number, number] 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 | Specifies whether the layer should be visible inherit width = number Specifies the width of the layer in pixels z-index = number Specifies the stacking order of the layer (IE4+, N6+, FF1+) The content of this element is the title text to place in a . accesskey = key_character Defines a hotkey/keyboard shortcut for this align = top | left | bottom | Specifies the position of the legend in relation to the fieldset right 590
CÓ THỂ BẠN MUỐN DOWNLOAD
-
Web Programming with HTML, XHTML, and CSS Second Edition- P1
50 p | 335 | 155
-
Web Programming with HTML, XHTML, and CSS Second Edition- P2
50 p | 227 | 96
-
Web Programming with HTML, XHTML, and CSS Second Edition- P3
50 p | 185 | 84
-
Web Programming with HTML, XHTML, and CSS Second Edition- P4
50 p | 154 | 71
-
Web Programming with HTML, XHTML, and CSS Second Edition- P5
50 p | 154 | 61
-
Web Programming with HTML, XHTML, and CSS Second Edition- P6
50 p | 145 | 57
-
Web Programming with HTML, XHTML, and CSS Second Edition- P10
50 p | 142 | 54
-
Web Programming with HTML, XHTML, and CSS Second Edition- P9
50 p | 142 | 54
-
Web Programming with HTML, XHTML, and CSS Second Edition- P8
50 p | 147 | 54
-
Web Programming with HTML, XHTML, and CSS Second Edition- P7
50 p | 140 | 54
-
Web Programming with HTML, XHTML, and CSS Second Edition- P14
50 p | 122 | 52
-
Web Programming with HTML, XHTML, and CSS Second Edition- P12
50 p | 196 | 51
-
Web Programming with HTML, XHTML, and CSS Second Edition- P11
50 p | 160 | 49
-
Web Programming with HTML, XHTML, and CSS Second Edition- P15
50 p | 120 | 47
-
Web Programming with HTML, XHTML, and CSS- P1
50 p | 157 | 41
-
Web Programming with HTML, XHTML, and CSS Second Edition- P16
20 p | 113 | 33
-
Web Programming with HTML, XHTML, and CSS- P2
50 p | 127 | 24
Chịu trách nhiệm nội dung:
Nguyễn Công Hà - Giám đốc Công ty TNHH TÀI LIỆU TRỰC TUYẾN VI NA
LIÊN HỆ
Địa chỉ: P402, 54A Nơ Trang Long, Phường 14, Q.Bình Thạnh, TP.HCM
Hotline: 093 303 0098
Email: support@tailieu.vn