Thư viện tri thức trực tuyến
Kho tài liệu với 50,000+ tài liệu học thuật
© 2023 Siêu thị PDF - Kho tài liệu học thuật hàng đầu Việt Nam

The Best-Practice Guide to xHTML and CSS phần 8 potx
Nội dung xem thử
Mô tả chi tiết
Tags | 217
tabindex—Where the element appears in the tab order of the page.
disabled—Disables the button. It must be used in the format
disabled=”disabled”.
name—Associates a name to the button so that it can be processed by a
form-handling script.
type—The button type. Values can be button (doesn’t do anything), submit
(default; submits the form when the button is selected), or reset (resets the
form).
value—An initial value that will appear as the button’s label.
Content
Text, block (not including form or fieldset), inline (not including input, select,
textarea, label, or button), or none.
Example
<button>Push my <strong>button</strong> baby</button>
Related Tags
input, form
<caption></caption>
A caption for a table. This should be placed directly after the opening table tag and
will be displayed above the table by default.
See Chapter 8, “Tables.”
Attributes
[Common attributes]
Content
Text, inline, or none.
•
•
•
•
•
•
218 | Appendix A: XHTML Reference
Example
<table>
<caption>Animal groups</caption>
<!-- etc. -->
</table>
Related Tags
table
<cite></cite>
In-line citation or reference to another source.
See Chapter 2, “Text.”
Attributes
[Common attributes]
Content
Text, inline, or none.
Example
<p>So I asked <cite>Bob</cite> about quotations and he said <q>I
know as much about quotations as I do about pigeon fancying</q>.
Luckily, I found ‘HTML Dog’ and it said…</p>
Related Tags
q, blockquote
<code></code>
Code, such as computer code.
See Chapter 2, “Text.”
•
Tags | 219
Attributes
[Common attributes]
Content
Text, inline, or none.
Example
<code>norahjonesisbland=true;</code>
Related Tags
samp, var, pre
<col />
Table column. Allows attributes to be applied to a table column. Must be used
within a colgroup element.
See Chapter 8, “Tables.”
Attributes
[Common attributes]
span —The number of columns the element applies to.
Note: There are other valid attributes (align, valign, char, charoff) but they are
presentational and so CSS should be used instead.
Content
Empty.
Example
<table>
<colgroup>
<col />
<col class=”alternative” />
•
•
•