develop with

table

TABLE Tag

Attributes are:

Attribute Description Default Value Values Required
summary used for titles etc. no
width nn for pixels or nn% for percentage length no
border integer representing length in pixels no
frame The border attribute sets the thickness of the frame around the table. The default units are screen pixels. The frame attribute specifies which parts of the frame around the table should be rendered. The values are not the same as CALS to avoid a name clash with the valign attribute. no
rules The rules attribute defines which rules to draw between cells: If rules is absent then assume: "none" if border is absent or border="0" otherwise "all" no
cellspacing nn for pixels or nn% for percentage length no
cellpadding nn for pixels or nn% for percentage length no

Example:

<table 
summary="" 
width="" 
border="" 
frame="" 
rules="" 
cellspacing="" 
cellpadding="" 
>
</table>

Sub-elements

##Events##

Event Description
onclick The onclick event occurs when the pointing device button is clicked over an element. This attribute may be used with most elements.
ondblclick The ondblclick event occurs when the pointing device button is double clicked over an element. This attribute may be used with most elements.
onmousedown The onmousedown event occurs when the pointing device button is pressed over an element. This attribute may be used with most elements.
onmouseup The onmouseup event occurs when the pointing device button is released over an element. This attribute may be used with most elements.
onmouseover The onmouseover event occurs when the pointing device is moved onto an element. This attribute may be used with most elements.
onmousemove The onmousemove event occurs when the pointing device is moved while it is over an element. This attribute may be used with most elements.
onmouseout The onmouseout event occurs when the pointing device is moved away from an element. This attribute may be used with most elements.
onblur The onblur event occurs when an element loses focus either by the pointing device or by tabbing navigation. It may be used with the same elements as onfocus.
onkeypress The onkeypress event occurs when a key is pressed and released over an element. This attribute may be used with most elements.
onkeydown The onkeydown event occurs when a key is pressed down over an element. This attribute may be used with most elements.
onkeyup The onkeyup event occurs when a key is released over an element. This attribute may be used with most elements.
comments powered by Disqus

Want to see a topic covered? create a suggestion

Get more developer references and books in the developwith store.