<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>Example of CSS caption-side property</title> <style> table, td, th { border: 2px solid purple; } caption { caption-side: bottom; } </style> </head> <body> <table> <caption>User Details</caption> <thead> <tr> <th>ID</th> <th>Name</th> <th>Phone Number</th> </tr> </thead> <tbody> <tr> <td>1</td> <td>Ram</td> <td>9887231569</td> </tr> <tr> <td>2</td> <td>Ravi</td> <td>9872750934</td> </tr> <tr> <td>3</td> <td>Raj</td> <td>9826095437</td> </tr> </tbody> </table> <p><strong>Note:</strong> Internet Explorer 8 supports the caption-side property only if a <code>!DOCTYPE</code> is specified.</p> </body> </html>