根据给定的输入列表创建一个HTML表格。
[[“姓名”, “年龄”, “性别”], [“小明”, “20”, “男”], [“小红”, “25”, “女”], [“小刚”, “18”, “男”]]
<table>
  <thead>
    <tr>
      <th>姓名</th>
      <th>年龄</th>
      <th>性别</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td>小明</td>
      <td>20</td>
      <td>男</td>
    </tr>
    <tr>
      <td>小红</td>
      <td>25</td>
      <td>女</td>
    </tr>
    <tr>
      <td>小刚</td>
      <td>18</td>
      <td>男</td>
    </tr>
  </tbody>
</table>