ในการสร้างตารางที่มีคำบรรยายใน HTML ให้ใช้แท็ก คำบรรยายถูกเพิ่มเข้าไปในตาราง ต่อจากแท็ก

ตัวอย่าง
คุณสามารถลองเรียกใช้โค้ดต่อไปนี้เพื่อสร้างตารางที่มีคำบรรยายเป็น HTML
<!DOCTYPE html> <html> <head> <style> table, td, th { border: 1px solid black; } </style> </head> <body> <table> <caption>Our Technologies</caption> <tr> <th>IDE</th> <th>Database</th> </tr> <tr> <td>NetBeans IDE</td> <td>MySQL</td> </tr> </table> </body> </html>
ผลลัพธ์