Search
 
SCRIPT & CODE EXAMPLE
 

HTML

table with border in html

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

How to create table in HTML with border

<!DOCTYPE html>
<html>
<style>
table, th, td {
  border:1px solid black;
}
</style>
<body>

<h2>A basic HTML table</h2>

<table style="width:100%">
  <tr>
    <th>Company</th>
    <th>Contact</th>
    <th>Country</th>
  </tr>
  <tr>
    <td>Alfreds Futterkiste</td>
    <td>Maria Anders</td>
    <td>Germany</td>
  </tr>
  <tr>
    <td>Centro comercial Moctezuma</td>
    <td>Francisco Chang</td>
    <td>Mexico</td>
  </tr>
</table>

<p>To understand the example better, we have added borders to the table.</p>

</body>
</html>
Comment

PREVIOUS NEXT
Code Example
Html :: how to open a website inside a website 
Html :: How to add a browser tab icon (favicon)? 
Html :: font awesome src 
Html :: how to link a local css file in html 
Html :: gmail imap settings 
Html :: table border color in html 
Html :: video url html 
Html :: textarea readonly 
Html :: html tabulation 
Html :: reactjs white space 
Html :: classs for making text bold in bootstarp 
Html :: dont show suggestions in input hs 
Html :: fa fa copy icons 
Html :: how to put autoplay music in the background of the page html 
Html :: laravel csrf protection 
Html :: share to facebook html link 
Html :: input with dropdown 
Html :: dropdown bootstrap 5 
Html :: html input autofocus 
Html :: how to make an image with a link html 
Html :: restart remote computer cmd using ip address 
Html :: twig captitalize 
Html :: how to display a link in html 
Html :: metaverse 
Html :: html schrift dicke 
Html :: how to make a distance between a label and input html 
Html :: html quote code 
Html :: tailwind hover color 
Html :: html width 
Html :: select empty option 
ADD CONTENT
Topic
Content
Source link
Name
6+2 =