answersLogoWhite

0

Yes, it's possible to align tables next to each other using the float value of the style attribute. Give both tables the same float and a fixed width and they will appear next to each other if the browser window is wide enough.

Example:

<table style="float:left; width:100px;">

<tr><th>Table 1</th></tr>

<tr><td>Content</td></tr>

</table>

<table style="float:left; width:100px;">

<tr><th>Table 2</th></tr>

<tr><td>Content</td></tr>

</table>

This will create two tables of the width 100px next to each other.

User Avatar

Wiki User

15y ago

Still curious? Ask our experts.

Chat with our AI personalities

JordanJordan
Looking for a career mentor? I've seen my fair share of shake-ups.
Chat with Jordan
RafaRafa
There's no fun in playing it safe. Why not try something a little unhinged?
Chat with Rafa
ReneRene
Change my mind. I dare you.
Chat with Rene
More answers

<table> Opens table

<tbody> Attributes, not always necessary

<tr> Opens row

<td> Opens column

</td> Closes column

<td> Opens column

</td> Closes column

</tr> Closes row <-------END FIRST ROW-------->

<tr>

<td>

</td>

<td>

</td>

</tr>

</tbody> Closes

</table> Closes table

2 row, 2 column table

! row, 1 column = box. Add rows as necessary.

Add columns within rows as necessary.

User Avatar

Wiki User

12y ago
User Avatar

The best way is to create one table with two cells on one row. Then in each of those cells you place a table. You can have all borders of the outer table hidden, leaving you to see two tables beside each other.

User Avatar

Wiki User

10y ago
User Avatar

Tables are important for placing desired text or content in a specific area on the page. Without tables the HTML will be viewed as a list starting from the top down. Think of it as creating a grid on the page, and you can place content in each cell of that grid where desired.

The start tag for table is

the table is divided by by Rows and cells (columns) To start a row you use the tag within this TR tag the cells are placed by using the tags each start,and end tag will represent a cell, and you can add as many cells as you wish. When you want to end the row you use the tag. After you complete the number of rows you want you close the table with
the following example is for a simple table that consists of two rows that have two cell each>

this is the content in the first cell in the first rowThis is the content in the second cell first row
this is the content in the first cell in the second rowthis is the content in the second cell in the second row

User Avatar

Wiki User

16y ago
User Avatar

You can create a new table by <table> tag. You can close that tag using </table> tag.

User Avatar

Wiki User

10y ago
User Avatar

Add your answer:

Earn +20 pts
Q: What is the HTML code to make a table?
Write your answer...
Submit
Still have questions?
magnify glass
imp