Html内部表错误

Html内部表错误,html,Html,下面是我的html代码,由一个表和两行组成,第二行由每个td中的两个表组成。现在,第二个td中的第二个表格显示在中间,但不在顶部。我要那张桌子在上面 <table> <tr> <th>Upload a File to BlockChain</th> <th>Transaction Details</th> </tr> <tr> <t

下面是我的html代码,由一个表和两行组成,第二行由每个td中的两个表组成。现在,第二个td中的第二个表格显示在中间,但不在顶部。我要那张桌子在上面

    <table>
    <tr>
    <th>Upload a File to BlockChain</th>
    <th>Transaction Details</th>
    </tr>
    <tr>
        <td>
            <table style="width: 100%" bgcolor="#cceeff">
                <tr>
                    <td>Name <br> <input type=text name=textnames
                        placeholder="Employee Name" id="textname" size="60">
                    </td>
                </tr>
                <tr>
                    <td>Employee Id <br> <input type="text"
                        placeholder="Employee Id" name="fathername" id="fathername"
                        size="60"></td>
                </tr>
                <tr>
                    <td>Contact No. <br> <input type="text" name="paddress"
                        placeholder="Contact Number" id="paddress" size="60"></td>
                </tr>

            </table>
        </td>
        <td>
            <table width="100" height="100">
                <tr>
                    <th>From Party</th>
                    <th>To Party</th>
                    <th>Docs</th>
                    <th>Created State</th>
                    <th>Status</th>
                </tr>
            </table>
        </td>
    </tr>
</table>

将文件上载到区块链
交易详情
名称
员工Id
联系电话
来自党 聚会 文件 创建状态 地位
您可以删除height=“100”并将valign=“top”添加到td


来自党
聚会
文件
创建状态
地位
请参见此 我已将您的html更改如下

<div>

  <table style="width: 50%; float:left">
    <tr>
      <th>Upload a File to BlockChain</th>
    </tr>
    <tr>
      <td>
        <table style="width: 100%;" bgcolor="#cceeff">
          <tr>
            <td>Name
              <br>
              <input type=text name=textnames placeholder="Employee Name" id="textname">
            </td>
          </tr>
          <tr>
            <td>Employee Id
              <br>
              <input type="text" placeholder="Employee Id" name="fathername" id="fathername">
            </td>
          </tr>
          <tr>
            <td>Contact No.
              <br>
              <input type="text" name="paddress" placeholder="Contact Number" id="paddress">
            </td>
          </tr>

        </table>
      </td>

    </tr>
  </table>
  <table style="width: 50%; float:left">
    <tr>
      <th colspan="5">Transaction Details</th>
    </tr>

    <tr>
      <th>From Party</th>
      <th>To Party</th>
      <th>Docs</th>
      <th>Created State</th>
      <th>Status</th>
    </tr>
  </table>
</div>

将文件上载到区块链
名称

员工Id
联络电话。
交易详情 来自党 聚会 文件 创建状态 地位