Source Code:
(back to article)
Submit
Result:
Report an issue
<!DOCTYPE html> <html> <head> <title>Title of the document</title> <style> table, td, th { border: 1px solid black; border-collapse: separate; } td, th { padding: 5px 10px; } </style> </head> <body> <h2>Example for border-collapse separate</h2> <table> <tr> <th>Heading</th> <th>Heading</th> </tr> <tr> <td>Some text</td> <td>Some text</td> </tr> <tr> <td>Some text</td> <td>Some text</td> </tr> </table> </body> </html>