How to add a table into your WordPress blog?

How to make write html table code for your WordPress blog?

Here is the code part:

<table> means “start” the table. You can adjust the table border, cellspacing, and cellpadding; also you can align the table center, right, or left .

<tbody>  HTML tag must have one or more <tr> tags inside in order to create your table contents.

<tr> means you are starting a table row

<td> means you can put data, picture, text. You can repeat td as many times as you want. Table cells are across your table and repeatable.
You can put the table rows (tr) as many times as you want.

Here is a sample table code:
This table has two column, 94% wide with padding.

<table width=”94%” border=”0″ align=”center” cellpadding=”2″ cellspacing=”4″>
  <tr>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
</table>

The result of table will look like this: (I added text into table to show result)

Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril delenit augue duis dolore te feugait nulla facilisi. Nam liber tempor cum soluta nobis eleifend option congue nihil imperdiet doming id quod mazim placerat facer possim assum. Typi non habent claritatem insitam; est usus legentis in iis qui facit eorum claritatem. Investigationes demonstraverunt lectores legere me lius quod ii legunt saepius. Claritas est etiam processus dynamicus, qui sequitur mutationem consuetudium lectorum. Mirum est notare quam littera gothica, quam nunc putamus parum claram, anteposuerit litterarum formas humanitatis per seacula quarta decima et quinta decima. Eodem modo typi, qui nunc nobis videntur parum clari, fiant sollemnes in futurum. Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril delenit augue duis dolore te feugait nulla facilisi. Nam liber tempor cum soluta nobis eleifend option congue nihil imperdiet doming id quod mazim placerat facer possim assum.

You can always adjust the table data <td> content , text and image position
<td valign=”top” width=”46%” align=”justify”>

You can also create a table with a fixed size instead of percentage and apply cell border, cell background color, cell padding values.

<table width=”300″ border=”1″ bgcolor=”#cc0000″ cellspacing=”2″ cellpadding=”6″ align=”center”>
  <tbody>
<tr>
<td align=”left” valign=”top” bgcolor=”#dddddd”><p>this is inside
 text</p></td>
<td align=”justify” valign=”top” bgcolor=”#dddddd”>Lorem ipsum dolor</td>
</tr>
</tbody>
</table>

This table will look like this:

Use these HTML codes to create a table in your blog pages.

To insert a table into your WordPress blog page, just type HTML code in that page.

Please share it
Email this to someoneShare on Google+Pin on PinterestTweet about this on TwitterShare on LinkedInShare on Facebook