Web.QHMIT
.com
Toggle navigation
☰
Home
HTML
CSS
Scripting
Database
Run
<!doctype html> <title>Example</title> <style> table { border: 1px solid orange; border-collapse: collapse; width: 100%; } td, th { border: 1px solid orange; padding: 5px; } </style> <table> <tr> <th>Table Header</th> <th>Table Header</th> <th>Table Header</th> </tr> <tr> <td>Cell</td> <td>Cell</td> <td>Cell</td> </tr> <tr> <td>Cell</td> <td>Cell</td> <td>Cell</td> </tr> </table> <p>The above table is styled using <code>border-collapse:collapse</code>. Try changing the value to <code>border-collapse:separate</code> to see the effect it has on the borders. </p>
Preview