Html table tr inside td

Scorpion picture Scorpion · Jun 13, 2013 · Viewed 251.1k times · Source

I am trying to create a table in HTML. I have the following design to create. I had added a <tr> inside the <td> but somehow the table is not created as per the design.

enter image description here

Can anyone suggest me how I can achieve this?

I am unable to create Name1 | Price1 sections.

Answer

herrhansen picture herrhansen · Jun 13, 2013

You must add a full table inside the td

    <table>
      <tr>
        <td>
          <table>
            <tr>
              <td>
                ...
              </td>
            </tr>
          </table>
        </td>
      </tr>
    </table>