Skip to content
Related Articles

Related Articles

How to put the caption below the table using CSS ?

View Discussion
Improve Article
Save Article
  • Last Updated : 25 Mar, 2021

To put the caption below the table we can use the CSS caption-side property. This property is used to specify the position where the table caption is placed. It is used in HTML Tables

This property can be used with any element whose display property set to caption-side. There are several parameters for this property, but we have been asked to put the caption below the table, so we will use a single parameter value that is bottom.


caption-side: bottom;



<!DOCTYPE html> 
        <title>caption-side property</title
            .geeks { 
                caption-side: bottom; 
            <h1 style="color:green;">GeeksForGeeks</h1
            <h2>caption-side: bottom:</h2
            <table class="geeks" border="1"
                <caption>Table 4.1 Student Details</caption
                    <th>Student Name</th
                    <td>Hritik Bhatnagar</td
                    <td>Govind madan</td
                    <td>Suraj Roy</td
                    <td> Dhruv Mishra</td



My Personal Notes arrow_drop_up
Recommended Articles
Page :

Start Your Coding Journey Now!