Pages - Menu

Friday, August 10, 2012

How to put a table to blog post

 I want to show you how to put a table inside the post here. First you click new post and then click html not compose and then copy paste the code at below. That one i write but you can change it by playing with it.









This is how it will look like on the post.

Name Surname Nationality Sex Age
Tom Jackson U.S.A M 65
Kate Miller U.K F23
Jack Brown Australia M 34
Bart WhiteCanada M 32
Ben Kelly U.S.A M22


On top you see a table so how can we put it on post?

Let me put its code here first.


Ok. To create a table you need a table, headers and cells also data inside cells. Headers and cells can be optional sometimes. You need tags for it.
For table; <table>
For header <th>
For row <tr>
For data <td>
For body <tbody>

These are must have tags for table. Also you can put some href and some java script things inside like onclick, onblur etc...

1 comment:

  1. Very useful HTML tutorial.Actually Now I am learning HTML and CSS code so that I can make a web page.Now I am looking for an effective tutorial based on how to create a drop down menu using just HTML and CSS code.Would you share a article on this topic?

    ReplyDelete