Changes

Jump to navigation Jump to search
no edit summary
Line 1: Line 1:  
{{move|HTML table formatting}}
 
{{move|HTML table formatting}}
 
'''HTML table formatting''' is cumbersome and often perplexing. For instance, to get rid of the hollow or "chiseled" borders between rows and columns, use these codes: frame=box rules=all
 
'''HTML table formatting''' is cumbersome and often perplexing. For instance, to get rid of the hollow or "chiseled" borders between rows and columns, use these codes: frame=box rules=all
 +
 
==Syntax==
 
==Syntax==
 +
 
===Standard===
 
===Standard===
 
Every table starts out with the ordinary tag <code><nowiki><table></nowiki></code>. This is typically followed by a <code><nowiki><tr></nowiki></code> tag which signifies the beginning of a new row. This is followed by a <code><nowiki><td></nowiki></code> tag which stands for "table data" - i.e. every box inside the row. Each td and tr tag must be closed, as must the table tag. (<code><nowiki></td></tr></table></nowiki></code>)
 
Every table starts out with the ordinary tag <code><nowiki><table></nowiki></code>. This is typically followed by a <code><nowiki><tr></nowiki></code> tag which signifies the beginning of a new row. This is followed by a <code><nowiki><td></nowiki></code> tag which stands for "table data" - i.e. every box inside the row. Each td and tr tag must be closed, as must the table tag. (<code><nowiki></td></tr></table></nowiki></code>)
Line 50: Line 52:  
|border="none"|<-- ''This row has only two table datas, because its first is being taken up.
 
|border="none"|<-- ''This row has only two table datas, because its first is being taken up.
 
|}
 
|}
 +
 
===Borders===
 
===Borders===
 
Border can be done one of two ways.
 
Border can be done one of two ways.
 +
 
===Separated===
 
===Separated===
 
The most common way to do borders is having a border variable isolated - as in:
 
The most common way to do borders is having a border variable isolated - as in:
Line 89: Line 93:  
=====Note=====
 
=====Note=====
 
<sup>[1]</sup><small>Borders can also more tediously be set for <nowiki><td> and <th></nowiki> tags.</small>
 
<sup>[1]</sup><small>Borders can also more tediously be set for <nowiki><td> and <th></nowiki> tags.</small>
−
[[category:Website Development]]
+
 
    
===Cellpadding and Cellspacing===
 
===Cellpadding and Cellspacing===
 
[[Image:Tables-cellpadding.gif|250px|right|This is cellpadding]]
 
[[Image:Tables-cellpadding.gif|250px|right|This is cellpadding]]
 +
 
====Cellpadding====
 
====Cellpadding====
 
Cellpadding controls the distance between the contents of an individual cells i.e. <nowiki><td> tags</nowiki>) and the cell boundaries.<br/>
 
Cellpadding controls the distance between the contents of an individual cells i.e. <nowiki><td> tags</nowiki>) and the cell boundaries.<br/>
Line 103: Line 108:     
*[[C programming language]]
 
*[[C programming language]]
 +
 +
[[category:Website Development]]
 +
[[Category:HTML]]
nsTeam1RO, nsTeam1RW, nsTeam1_talkRO, nsTeam1_talkRW
13,818

edits

Navigation menu