Click here to Skip to main content
15,920,005 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello, I am trying to make a table in html but it is only showing the outside borders
so it looks like a box.Does anyone knows how can I fix it?
Thank you

What I have tried:

HTML
<table> 
<caption>aaaaaaaa</caption>
								
		<tbody><tr>
			<th>aaaaaaaa</th>	
			<th>aaaaaaaa</th>	
			<th>aaaaaaaa</th>
			<th>aaaaaaaa</th>
		</tr>
			
								
		<tr>
			<td>aaaaaaaa</td>
			<td>aaaaaaaa</td>
			<td>aaaaaaaa</td>
			<td>aaaaaaaa</td>
		</tr>
	
								
		<tr>
			<td>aaaaaaaa</td>
			<td>aaaaaaaa</td>
			<td>aaaaaaaa</td>
			<td>aaaaaaaa</td>
		</tr>
	
					</tbody></table>
Posted
Updated 26-Nov-16 2:18am
v2
Comments
Kornfeld Eliyahu Peter 24-Nov-16 15:43pm    
There is no border defined here! Please explain in more details what went wrong...

try this
HTML
<table cellpadding="0" cellspacing="0" style="border-collapse:collapse" border="1">
 
Share this answer
 
You need to set the table styles to define what kind of borders and rules (lines between the table entries) you want. In HTML5 you need to use CSS, in HTML4 you can use the frame and rules attributes of the table element.
 
Share this answer
 
Check this out: HTML Tables[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900