Nag
Nag

Reputation: 956

nesting of table tag inside table tag

Is it ok to use table tag inside a table tag as shown below, Is it syntactically correct?

Html:

 <table width="100%">
   <table width="100%">
          <tr>
             <td> Lorem Ipsum </td>
          </tr>                 
   </table>     
</table> 

Upvotes: 0

Views: 67

Answers (2)

Manish Kumar
Manish Kumar

Reputation: 231

<table width="100%">
<tr>
    <td>
        <table width="100%">
               <tr>
                  <td>   Lorem Ipsum (Add table inside td)             
                  </td>
               </tr>      
          </table>      
    </td>
 </tr>   
</table>

Upvotes: 0

Hiren Vaghasiya
Hiren Vaghasiya

Reputation: 5544

No It is not syntactically correct, You need to add table in td

<table width="100%">
    <tr>
        <td>
               <table width="100%">
                   <tr>
                      <td> Lorem Ipsum </td>
                   </tr>      
              </table>     
        </td>
     </tr>   
</table>

Upvotes: 2

Related Questions