Saturday, January 14, 2012

How To Create Table In Blogger/Wordpress

By Jitendra Indave On Saturday, January 14, 2012
While blogging many peoples need to insert table. But if they don't know all about HTML then it is hard task to them. Here an easy way is shown to create table without dealing with HTML Code.



Still if you want to go with HTML code. Then here is simple method given just follow it.
  • First of all use <table> and </table>tag
  • For each row enter <tr> and</tr>tag
  • Inside table row means in between <tr> and </tr> use <td>and</td> to insert cell.
  • Finally what contents in table you want to display those you can enter in between <td>and </td> tag
  • Here, if you want border for the table then use attribute border this way <table border=”4”>
  • If you want some space in between cell border and text then use attribute cellpadding (see below example)


CODE

<table border="2" cellpadding="10">
<tr>
<td>Class</td>
<td>Boys</td>
<td>Girls</td>
</tr>
<tr>
<td>IX</td>
<td>25</td>
<td>36</td>
</tr>
</table>


OUTPUT

Class
Boys
Girls
IX
25
36

0 comments:

Post a Comment

// this code is not working of page navigation