前端歌谣的刷题之路-第二题-表格结构

54 阅读1分钟

 

目录

前言

题目

​编辑

核心代码

总结


前言

我是歌谣 歌谣的意志是永恒的 放弃很容易 但是坚持一定很酷 本题目源自于牛客网

题目

请写出具有表格标题为"nowcoder"的2行3列表格结构。

​编辑

核心代码

<body>
  <!-- 表格标题为"nowcoder"的2行3列表格结构。 -->
  <table>
    <caption>nowcoder</caption>
    <tr>
      <th></th>
      <th></th>
      <th></th>
    </tr>
    <tr>
      <td></td>
      <td></td>
      <td></td>
    </tr>
  </table>
</body>

总结

caption设置标题 tr表行 td表格列