Skip to main content

Tables...

Ok.... So now we are done with a lot of lists.. now let us study about tables...

Well all of you know what are tables...Now lets make a table in HTML...

<html>
<body>
<table style="width:100% border="1" ">
  <tr>
    <td>Jill</td>
    <td>Smith</td>       
    <td>50</td>
  </tr>
  <tr>
    <td>Eve</td>
    <td>Jackson</td>       
    <td>94</td>
  </tr>
  <tr>
    <td>John</td>
    <td>Doe</td>       
    <td>80</td>
  </tr>
</table>
</body>
</html>


Your result must be somewhat like this :-

ok now lets understand this code...

Tables are defined with the <table> tag.
Tables are divided into table rows with the <tr> tag.
Table rows are divided into table data with the <td> tag.
A table row can also be divided into table headings with the <th> tag.

Table data <td> are the data containers of the table.
They can contain all sorts of HTML elements like text, images, lists, other tables, etc.

In the next post we will start with <div></div> tags and will then begin with the basics of CSS...So keep practicing what we have learnt till now... because we will have a test...more information about this test will be in a post...

Comments

Popular posts from this blog

Maths and programmig side by side...

Lets do maths and programming side by side...   We all like 3D animations...You must wondering what language must be used to make them..but we can make them by using a simple software "Alice"  So Do Download the Software ... Its is  trusted and is virus less!  Remember: Your laptop must have java if not please do download it from its original site...

Types Of List

So in the last blog, we worked on with a list called unordered list......Now we are gonna study more types of list.. Ordered list - This type of list starts with <ol> and ends with </ol>....this type of list creates auto numbers like 1,2,3,4....etc.. Now go to your notepad and update the code...the things in bold must be updated.. <html> <head> <title>My First Webpage (About dinosaurs)</title> </head> <h1>First Webpage</h1> <h2>Welcome to my Website...... <p>This is my first webpage....Hope you like it</p> <br> <br> <h2>Dinosaurs --- All about them</h2> <br> <p>We all know about dinasaurs.. There are many types of dinosaurs and some of the names are :- <ol> <li>Abelisaurus</li>  <li>Acanthopholis</li> <li>Acristavus</li>   </ol> </html>  After updating the code your result will be like this :- Did y...

POSTS TO BE STOPPED!!!

I am going on a leave for a month and thus there will be no posts in the following next month! After I will be back the registration will start for the contest! MINIMUM 10 entries to be there for the contest...So call your friends to join the contest!t By the way this is my twentieth post... - Dwij Jha