HTML table: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
No edit summary
 
(3 intermediate revisions by the same user not shown)
Line 37: Line 37:
</pre>
</pre>


!!TD
==<tt>&lt;td></tt>==


{{{
<pre>
     <td align="left|right|center|justify|char" valign="top|middle|bottom|baseline">
     <td align="left|right|center|justify|char" valign="top|middle|bottom|baseline">
}}}
</pre>


!!!Styles
=Styles=


!!Table
Multiple attributes in the <tt>style</tt> value should be separated by ";".


{{{
==Table==
 
<pre>
     <table style="height:100px">
     <table style="height:100px">
     <table style="width:904px">
     <table style="width:904px">
Line 54: Line 56:
     <table style="border-bottom:1px solid black">
     <table style="border-bottom:1px solid black">
     <table style="background-color:#c3c3c3">
     <table style="background-color:#c3c3c3">
}}}
</pre>


!!TR
==tr==


!!TD
==td==


{{{
<pre>
     <td style="border-left:none">  
     <td style="border-left:none">  
     <td style="height:100px">  
     <td style="height:100px">  
}}}
</pre>
 
__Referenced by:__\\
[{INSERT com.ecyrd.jspwiki.plugin.ReferringPagesPlugin WHERE max=20, maxwidth=50}]

Latest revision as of 01:11, 10 June 2016

External

Internal

Overview

The <table> tag defines an HTML table.

An HTML table consists of the <table> element and one or more <th>, <tr> and <td> elements.

The <th> element defines a table header, the <tr> element defines a table row, and the <td> element defines a table cell.

Common Usage

<table>

    <table id="main_container" 
           width="100%" 
           border="0" 
           cellpadding="0" 
           cellspacing="0" 
           style="border-bottom:1px solid black">

       <tr><th align="left">First Name</th><th align="right">Age</th></tr>
       <tr><td>Alice</td><td>30</td></tr>
       <tr><td>Bob</td><td>31</td></tr>

    </table>

<td>

    <td align="left|right|center|justify|char" valign="top|middle|bottom|baseline">

Styles

Multiple attributes in the style value should be separated by ";".

Table

     <table style="height:100px">
     <table style="width:904px">
     <table style="margin-top:4px">
     <table style="margin-bottom:4px">
     <table style="border-bottom:1px solid black">
     <table style="background-color:#c3c3c3">

tr

td

     <td style="border-left:none"> 
     <td style="height:100px">