HTML5 validity of nested tables


The validator considers the following table as valid:

<!DOCTYPE html>
<html>
   <head>
      <meta charset = "utf-8">
      <title>Example</title>
   </head>

   <body>
      <table>
         <tbody>
            <tr>
               <td>
                  <table>
                     <tbody>
                        <tr>
                           <td>My</td>
                           <td>Table</td>
                        </tr>
                     </tbody>
                  </table>
               </td>
            </tr>
         </tbody>
      </table>
   </body>
</html>

Updated on: 28-Jan-2020

113 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements