CSS Properties: How to put the caption below the table?
Solution:
HTML Code:
Explanation:
- This HTML document demonstrates how to put the caption below the table using CSS.
- The HTML structure includes a table with a border width of 2 pixels and an id of "xtable".
- A CSS style block is used to style the table with the id "xtable" and specify that the caption should be placed below the table.
- The table itself contains rows and columns detailing frontend, backend, and database technologies.
- Each row contains data cells representing different technologies such as HTML, PHP, SQL, etc.
- The caption "w3resource Tutorial" is added to provide context or a title for the table.
Live Demo:
See the solution in the browser
Supported browser
![]() |
![]() |
![]() |
![]() |
![]() |
Yes | Yes | Yes | Yes | Yes |
What is the difficulty level of this exercise?
Test your Programming skills with w3resource's quiz.