使用
此处,我们添加了表格标题“Indian Cricketers” -
<!DOCTYPE html> <html> <head> <style> table, th, td { border: 1px solid black; } </style> </head> <body> <h2>Cricketers</h2> <table style = "width:100%"> <caption>Indian Cricketers</caption> <th>Name</th> <tr> <td>Sachin Tendulkar</td> </tr> <tr> <td>Virat Kohli</td> </tr> </table> </body> </html>
以上是在HTML中为表格创建标题?的详细内容。更多信息请关注PHP中文网其他相关文章!