i need help with coding for html?

beachbabe2023

New member
i have to a web page for my web design class that has two linked pages. i am so confused on how to code part of it and i was woindering if anyone could help me understand it.

I need help coding this: create a 5 row,two column table with a five pixel border,cellpadding of 15, and cellspacing of 5

thanks
 
Not to be rude, but this is pretty basic stuff. I only say that because if you're having that much trouble with it, you might want to talk your professor/teacher and try to get some extra help.

Tables in HTML are created primarily using three different elements, <table>, <tr>, and <td>. The <table> is the outer most one, and encapsulate all the others, and all the content of the table. This is also where the padding and spacing values are specified as attributes of the table element (e.g., <table padding="7" spacing="12">)

Each row is defined and enclosed by a <tr> element within the <table> element. Then, individual cells within that row are created with <td> elements, and the contents of the cell go inside the <td>.

For instance, this will create a simple 2 row, 3 column table, with lower case letters in the first row, upper case in the second:

<table>
<tr>
<td>a</td>
<td>b</td>
<td>c</td>
</tr>
<tr>
<td>X</td>
<td>Y</td>
<td>Z</td>
</tr>
</table>

Hope that helps.
 
<table cellpadding="15" cellspacing="5" border="5px">
<tr><td>Column 1 Row 1</td><td>Column 2 Row 1</td></tr>
<tr><td>Column 1 Row 2</td><td>Column 2 Row 2</td></tr>
<tr><td>Column 1 Row 3</td><td>Column 2 Row 3</td></tr>
<tr><td>Column 1 Row 4</td><td>Column 2 Row 4</td></tr>
<tr><td>Column 1 Row 5</td><td>Column 2 Row 5</td></tr>
</table>
 
hmmm,

well, I am exactly sure how to support you with that...

But when it comes time to host that website, I recommend EcoSnap.com

They offer great support (and might even be able to answer this question or you!) and are a really great deal. -- check out the coupon code below.

I hope I was a least somewhat of a help :-)
 
<table border=5 cellpadding=15 cellspacing=5>
<tr>
<td>1</td><td>2</td>
</tr>
<tr>
<td>1</td><td>2</td>
</tr>
<tr>
<td>1</td><td>2</td>
</tr>
<tr>
<td>1</td><td>2</td>
</tr>
<tr>
<td>1</td><td>2</td>
</tr></table>
 
That's your answer below:

<table border="5" cellspacing="5" cellpadding="15">
<tr>
<td>column 1</td>
<td>column 2</td>
</tr>
<tr>
<td>*</td>
<td>*</td>
</tr>
<tr>
<td>*</td>
<td>*</td>
</tr>
<tr>
<td>*</td>
<td>*</td>
</tr>
<tr>
<td>*</td>
<td>*</td>
</tr>
</table>
 
Back
Top