Editor Arrow Download Open
<!DOCTYPE html> <html> <head> <title>CSS caption-side property</title> <style> table, td, th { margin-top: 15px; border: 1px solid black; } .one { caption-side: top; } .two { caption-side: bottom; } </style> </head> <body> <code><b>Below example for caption top</b></code> <table class="one"> <caption>User Info</caption> <thead> <tr> <th>Name</th> <th>Address</th> </tr> </thead> <tbody> <tr> <td>Opal Kole</td> <td>63 street Ct.</td> </tr> <tr> <td>Max Miller</td> <td>41 NEW ROAD.</td> </tr> </tbody> </table> <br /> <hr /> <code><b>Below example for caption bottom</b></code> <table class="two"> <caption>User Info</caption> <thead> <tr> <th>Name</th> <th>Address</th> </tr> </thead> <tbody> <tr> <td>Opal Kole</td> <td>63 street Ct.</td> </tr> <tr> <td>Max Miller</td> <td>41 NEW ROAD.</td> </tr> </tbody> </table> </body> </html>
  Preview Arrow