HTML & CSS: The Complete Reference, Fifth Edition (Complete Reference Series) by Thomas Powell

HTML & CSS: The Complete Reference, Fifth Edition (Complete Reference Series) by Thomas Powell

Author:Thomas Powell
Language: eng
Format: mobi, epub, pdf
Tags: ISBN-13:, 9780071496292
Published: 2010-04-26T17:22:37+00:00


<tbody>

<tr>

<th> West Coast</th>

<td> 10</td>

<td> 12</td>

</tr>

<tr>

<th> East Coast</th>

<td> 1</td>

<td> 20</td>

</tr>

</tbody>

</table>

Compatibility

HTML 3.2, 4, 4.01, 5

Firefox 1+, Internet Explorer 2+,

XHTML 1.0, 1.1, Basic

Netscape 1.1+, Opera 4+, Safari 1+

Notes

• In addition to displaying tabular data, tables have been used to support graphics

layout and design. CSS is currently the suggested method for layout, but current

inspection of sites suggests that in 2009 table-based layout is alive and well.

• The HTML 4 specification reserved the attributes datasrc, datafld,

dataformatas, and datapagesize for future versions. However, XHTML dropped

these attributes. They are supported in Internet Explorer 4 and later. Early drafts of

the HTML5 specification introduced a datagrid, which seem to revisit these ideas,

but it was later dropped with indications it may return in future versions of HTML.

• At the time of this writing, most browsers have problems with char and charoff

attributes in all table-related tags.

• The HTML 3.2 specification defines only the align, border, cellpadding, cellspacing, and width attributes for the table element.

• The cols attribute might provide an undesirable result under some versions of

Netscape, which assumes the size of each column in the table is exactly the same.

<tbody> (Table Body)

This element is used to group the rows within the body of a table as defined by <tr> tags.

390

9 P a r t I : C o r e M a r k u p

Standard Syntax

<tbody align="center | char | justify | left | right"

char="character"

charoff="offset"

class="class name(s)"

dir="ltr | rtl"

id="unique alphanumeric identifier"

lang="language code"

style="style information"

title="advisory text"

valign="baseline | bottom | middle | top">

tr elements only

</tbody>

Attributes Introduced by HTML5

accesskey="spaced list of accelerator key(s)"

contenteditable="true | false | inherit"

contextmenu="id of menu"

data-X="user-defined data"

draggable="true | false | auto"

hidden="hidden"

itemid="microdata id in URL format"

itemprop="microdata value"

itemref="space-separated list of IDs that may contain microdata"

itemscope="itemscope"

itemtype="microdata type in URL format"

spellcheck="true | false"

tabindex="number"

Attributes Defined by Internet Explorer

accesskey="key" (5.5)

bgcolor="color name | #RRGGBB" (4)

hidefocus="true | false" (5.5)

language="javascript | jscript | vbs | vbscript" (4)

tabindex="number" (5.5)

unselectable="on | off" (5.5)

HTML 4 Event Attributes

onclick, ondblclick, onkeydown, onkeypress, onkeyup, onmousedown,

onmousemove, onmouseout, onmouseover, onmouseup

HTML5 Event Attributes

onabort, onblur, oncanplay, oncanplaythrough, onchange, onclick,

oncontextmenu, ondblclick, ondrag, ondragend, ondragenter, ondragleave,

ondragover, ondragstart, ondrop, ondurationchange, onemptied, onended,

onerror, onfocus, onformchange, onforminput, oninput, oninvalid, onkeydown,

onkeypress, onkeyup, onload, onloadeddata, onloadedmetadata, onloadstart,

onmousedown, onmousemove, onmouseout, onmouseover, onmouseup, onmousewheel,

C h a p t e r 3 : H T M L a n d X H T M L E l e m e n t R e f e r e n c e

391

onpause, onplay, onplaying, onprogress, onratechange, onreadystatechange,

onscroll, onseeked, onseeking, onselect, onshow, onstalled, onsubmit,

onsuspend, ontimeupdate, onvolumechange, onwaiting

PAR

Events Defined by Internet Explorer

T I

onactivate, onbeforeactivate, onbeforecopy, onbeforecut, onbeforedeactivate,

onbeforeeditfocus, onbeforepaste, onblur, onclick, oncontextmenu,

oncontrolselect, oncopy, oncut, ondblclick, ondeactivate, ondrag,

ondragend, ondragenter, ondragleave, ondragover, ondragstart, ondrop,

onfocus, onfocusin, onfocusout, onhelp, onkeydown, onkeypress, onkeyup,

onlosecapture, onmousedown, onmouseenter, onmouseleave, onmousemove,

onmouseout, onmouseover, onmouseup, onmousewheel, onmove, onmoveend,

onmovestart, onpaste, onpropertychange, onreadystatechange, onresize,

onresizeend, onresizestart, onselectstart, ontimeerror

Element-Specific Attributes

align This attribute is used to align the contents of the cells within a <tbody> tag.

Common values are center, justify, left, and right. The specification also defines a value of char. When align is set to char, the attribute char must be present and set to the character to which cells should be aligned. A common use of this approach would be to set

cells to align on a decimal point.



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.