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>
출력
- C 프로그래밍
- C++
- Redis
- BASH 프로그래밍
- Python
- Java
- 데이터 베이스
- HTML
- JavaScript
- 프로그램 작성
- CSS
- Ruby
- SQL
- IOS
- Android
- MongoDB
- MySQL
- C#
- PHP
- SQL Server