HTML Tables - Using Tags Inside of Tables
(Page 4 of 7 )
You use tags inside of tables just as you would outside of tables. Here are several samples showcasing how to do so:
<html>
<body>
<table border="1">
<tr>
<td>
<p>This is a paragraph</p>
<pre>This is preformatted</pre>
</td>
<td>This is a table within a table:
<table border="1">
<tr>
<td>Weeee!</td>
</tr>
<tr>
</table>
</td>
</tr>
<tr>
<td>
<ul>
<li>A</li>
<li>B</li>
<li>C</li>
</ul>
</td>
<td> <b>Bold</b>
<i>Italic</i>
<u>Underlined</u>
</tr>
</table>
</body>
</html>
And the result of this is:
This is a paragraph This is preformatted |
This is a table within a table: |
|
Next: Cellpadding and Cellspacing >>
More HTML Articles
More By James Payne