faqts : Computers : Programming : Languages : PHP : PHP Authoring

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

1 of 4 people (25%) answered Yes
Recently 1 of 4 people (25%) answered Yes

Entry

What are these called? Where can I find their meaning? <tr></tr>, <td></td>, <br></br>, etc

Aug 25th, 2006 02:20
Jeff Spijkers, FLAMBE,


These are basic HTML tags relating to tables.
<tr> and </tr> specify the start and end of a table row.
<td> and </td> specify the contents of each cell in the row, for 
example:
<tr>
  <td>Dogs</td>
  <td>Cats</td>
  <td>Birds</td>
</tr>
... would display 1 row in the table with 3 cells and the content of 
each cell being the text between each <td> </td> pair.
the above structure would likewise be contained in table tags as 
follows;
<table>
 <tr>
  <td>Dogs</td>
  <td>Cats</td>
  <td>Birds</td>
 </tr>
</table>
The definitions are
<tr> = table row
</tr> = end table row
<td> = table definition
</td> = end table definition
<table> = Start a new table
</table> ends the table
As for <br> this is an open tag and as such has no corresponding </br> 
tag. <br> simply means 'Break' and acts as a line break or carriage 
return when rendering the text in a browser.
e.g. Hello<br>my name is jeff
would be displayed in a browser as
Hello
my name is jeff
For information about HTML and how it works, I recommend that you 
visit the resource section of the HTML Writers Guild website at 
http://www.hwg.org/resources
Hope this helped