Jump to content

  • Free consultations and support
  • Live chatClick Here for Live Chat
  • Call ico 1888-906-1888
    Phone support: Open

    Ready for your call :)

    Our business hours:

    Mon — Fri, 2am — 8pm (EST)

    US & EU support teams

    Phone support: Closed

    We are back in: 1h 20m

    Our business hours:

    Mon — Fri, 2am — 8pm (EST)

    US & EU support teams


Building Tables in HTML5

building tables in html5

  • Please log in to reply
 

#1 OneDes

OneDes

    Senior Member

  • Designer
  • 282 posts

Posted 26 January 2013 - 04:45 PM

To create tables in HTML5 do the following

1.Decide how many columns you need, and determine which rows or columns you want to use as headlines.
2.Begin your table using the <table> tag.
The <table></table> encloses the table.
3.Create a table row using the <tr></tr> tags, you would need a pair or <tr></tr> for each data row.
4.Signify your headings using <th></th>, this will signify the text and make bolder and centered.
5.For normal data cells use the <td></td> pair.
6.Keep the number of your cells consistent across rows.
7.Add CSS code as required.
<table>
<tr>
<th>headline</th>
<th>headline</th>
</tr>

<tr>
<td>field1</td>
<td>field2</td>
</tr>

<tr>
<td>text</td>
<td>text2</td>
</tr>


</table>





Also tagged with one or more of these keywords: building tables, in html5

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users