Tag Inside Table in HTML

The Tutorial illustrates an example from Tag Inside Table in HTML.In this code we define a HTML page and show you to create a tag inside a Table in HTML.

Tag Inside Table in HTML

     

The Tutorial illustrates an example from Tag Inside Table in HTML.In this code we define a HTML page and show you to create a tag inside a Table in HTML. The following tags used in code to create tag inside table in HTML are -

<tr> : The <tr> tag is used to create   table rows.

<td> :The <td> tag is used to create a table cell in HTML page.

<ul> :The <ul> indicate unordered list.

<li> :The list item begin with <li> ,which marks with a bullet in HTML page.

Source Code

 

 

<html>
<body>

<table border="1">
<tr>
<td>
<p>Welcome to Online Web shooping website</p>
<p>Products</p>
</td>
<td>This cell contains a table:
<table border="1">
<tr>
<td>Flowers</td>
<td>Toys</td>
</tr>
<tr>
<td>Shirts</td>
<td>Trousers</td>
</tr>
</table>
</td>
</tr>
<tr>
<td>This cell contains a list
<ul>
<li>Flowers</li>
<li>Toys</li>
<li>Shirts</li>
<li>Trousers</li> 
</ul>
</td>
<td> Hi </td>
</tr>
</table>
</body>
</html>

The code is saved with .html extension. Place the path of saved html code in URL of your browser.

Output is displayed as

Download Source

Ads