HTML Editor
<!DOCTYPE html> <html lang="en-US"> <head> <style> table, td, th{ border: 1px solid black; } table{ width: 200px; } #point{ caption-side: top; } #point1{ caption-side: bottom; } </style> </head> <body> <h1>CSS caption-side Property</h1> <h2>caption-side: top;</h2> <table id="point"> <caption>Table 1.1 User Details</caption> <tr> <th>Name</th> <th>Age</th> </tr> <tr> <td>Jos</td> <td>28</td> </tr> <tr> <td>Alex</td> <td>34</td> </tr> </table> <h2>caption-side: bottom;</h2> <table id="point1"> <caption>Table 1.1 User Details</caption> <tr> <th>Name</th> <th>Age</th> </tr> <tr> <td>Jos</td> <td>28</td> </tr> <tr> <td>Alex</td> <td>34</td> </tr> </table> </body> </html>
OUTPUT
×

Save as Private