Table With Border In Html

[Solved] Table With Border In Html | Basic - Code Explorer | yomemimo.com
Question : table with border in html

Answered by : 2589

<table border="2" style="border-collapse:collapse;"> <tbody>	<tr>	<td>123</td>	<td>123</td>	<td>123</td> </tr>	</tbody>
</table>

Source : | Last Update : Sun, 17 Jul 22

Question : add border to html table

Answered by : ash-rlirp3kxbaqe

/*For collapsed boarders*/
table, th, td { border: 1px solid black; border-collapse: collapse;
}

Source : | Last Update : Wed, 19 Jul 23

Question : HTML Table Borders

Answered by : md-abdur-rakib

<!DOCTYPE html>
<html>
<head>
<style>
table, th, td { border: 1px solid black;
}
</style>
</head>
<body>
<h2>Table With Border</h2>
<p>Use the CSS border property to add a border to the table.</p>
<table style="width:100%"> <tr> <th>Firstname</th> <th>Lastname</th> <th>Age</th> </tr> <tr> <td>Jill</td> <td>Smith</td> <td>50</td> </tr> <tr> <td>Eve</td> <td>Jackson</td> <td>94</td> </tr> <tr> <td>John</td> <td>Doe</td> <td>80</td> </tr>
</table>
</body>
</html>

Source : | Last Update : Sat, 25 Feb 23

Question : table border

Answered by : waqasali

 <style> .table-bordered { border: 1.3px solid black !important; }
th,td{ border: 1.5px solid black !important; } </style>

Source : | Last Update : Thu, 09 Mar 23

Question : html table border

Answered by : alex-yousef

{"tags":[{"tag":"textarea","content":"<table border=\"1\">\n <tr>\n <th>Header 1<\/th>\n <th>Header 2<\/th>\n <\/tr>\n <tr>\n <td>Cell 1<\/td>\n <td>Cell 2<\/td>\n <\/tr>\n <tr>\n <td>Cell 3<\/td>\n <td>Cell 4<\/td>\n <\/tr>\n<\/table>\n","code_language":"html"},{"tag":"p","content":"You can adjust the size and style of the border by specifying a different value for the \"border\" attribute. For example, \"border=2\" will create a thicker border than \"border=1\". You can also use CSS to style the border of the table in more detail.&nbsp;"}]}

Source : | Last Update : Thu, 16 Mar 23

Answers related to table with border in html

Code Explorer Popular Question For Basic