表格元素上的边框属性已过时。使用 CSS 代替

问题描述 投票:0回答:1

新手项目。不允许使用CSS,只能使用HTML。表格必须有可见的边框。当我检查验证时出现错误,请参阅上面的标题。搜索并尝试均未成功。如何仅使用 HTML 来通过带有边框或类似边框外观的下表的验证。


<table border="1">

 <thead>
 <tr>
   <th>1</th>
   <th>2</th>
   <th>3</th>
  </tr>
 </thead>

 <tbody>

  <tr>
   <td>4</td>
   <td>5</td>
   <td>6</td>
  </tr>
    
  <tr>
   <td>7</td>
   <td>8</td>
   <td>9</td>
  </tr>
        </tbody>
    </table>

我尝试并期望我的 html 能够验证。结果出现如标题所示的错误。

html validation border obsolete
1个回答
0
投票

您到底遇到了什么错误?

© www.soinside.com 2019 - 2024. All rights reserved.