코드:
결과보기 »
<!DOCTYPE html> <html lang="ko"> <head> <meta charset="UTF-8"> <title>HTML Tables</title> <style> table, th, td { border: 1px solid black; border-collapse: collapse } </style> </head> <body> <h1>테이블의 캡션 설정</h1> <table style="width:100%"> <caption>해양 생물</caption> <tr> <td>참치</td> <td>고래</td> <td>날치</td> </tr> <tr> <td>상어</td> <td>문어</td> <td>꽁치</td> </tr> <tr> <td>오징어</td> <td>고등어</td> <td>돌고래</td> </tr> </table> </body> </html>