Friday, July 3, 2009

Tables


Table which is very common in the site's HTML. Table to help organize and display information over the net than without it. People who do not know CSS depending on the table to create the layout of their web page. The table also notorious for using lots of tags and attributes, the HTML pages is quite easy to look perplexed and complicated.
To define a table we use <table> </ table> tags. All things that will be included in the table you should be in this tag. If not, open your text editor and web browser, and make sure your HTML coding such as this.


<html>
<head>
<title> My Web </ title>
</ head>
<body>

<table>
</ table>

</ body>
</ html>

Result


My Web Page









With the coding you can see that we have told the browser that we have a table we will be given. However, we need to add a little more, our coding. Work table in HTML to work accordingly. So, for each row in the table, you should use <tr> >/ tr> tags. This defines the line. Even now, you can not remove a few lines of code in the text and insert into it. Now you must add a pair of tags, <td> </ td>, to determine what is running in every cell in the table. 'Td' means that the data table. So let's add two rows and two columns to our site. Your table will look like this.
<table>
<tr> <th colspan="2"> This is my table! </ th> </ tr>
<tr> <td> Cell 1 </ td> <td> Cell 2 </ td></ tr>
<tr> <td> Cell 3 </ td> <td> Cell 4 </ td> </ tr>
</ table>

Result:


This is my table!
Cell 1 Cell 2
Cell 3 Cell 4




Related Posts by Categories



Widget by Simran

0 comments on "Tables"

Add your comment. Please don't spam!
Subscribe in a Reader
:)) ;)) ;;) :D ;) :p :(( :) :( :X =(( :-o :-/ :-* :| 8-} :)] ~x( :-t b-( :-L x( =))

Post a Comment

 

Hadena | Copyright © 2009 | Original Design By Deluxe Themes | Converted To Blogger By Technolizard