HTML Editor
<!DOCTYPE html> <html lang="en-US"> <head> <style> table, td, th{ border: 1px solid black; } table{ width: 200px; } #point{ empty-cells: show; } #point1{ empty-cells: hide; } </style> </head> <body> <h1>CSS empty-cells Property</h1> <h2>empty-cells: show;</h2> <table id="point"> <tr> <th>Name</th> <th>Age</th> </tr> <tr> <td>Jos</td> <td>28</td> </tr> <tr> <td>Alex</td> <td></td> </tr> </table> <h2>empty-cells: hide;</h2> <table id="point1"> <tr> <th>Name</th> <th>Age</th> </tr> <tr> <td>Jos</td> <td>28</td> </tr> <tr> <td>Alex</td> <td></td> </tr> </table> </body> </html>
OUTPUT
×

Save as Private