Images in a table?

Issues related to building and deploying HTML/XHTML.
no avatar
tutorialspoint
Site Admin
 
Posts: 144
Joined: Fri Apr 27, 2007 6:52 pm

Images in a table?

by tutorialspoint » Sat May 16, 2009 10:57 am

Images in a table?

I am using S e a M o n e y 1.1.15 on Mac.

I have a simple table with 2 rows and 3 columns. Each cell is 160 high x 275 wide.

I would like to put a different image in each of the six cells, and optionally have each image link to a different web site if you click on it. I am thinking I should be able to do this but can't. I tried using SRC to specify the source of the image.....but I am apparently doing something wrong.

Can I do what I want to do?

Thanks,
Jeff
Last edited by tutorialspoint on Wed Feb 10, 2010 7:56 pm, edited 1 time in total.

no avatar
Buriak
 
Posts: 2
Joined: Tue Feb 09, 2010 5:10 pm

by Buriak » Tue Feb 09, 2010 5:21 pm

Yes, you can do it. Here is the code
Code: Select all
<table>
           <tr> <td><a href="url"><img src="URL" alt=""></a></td> <td><a href="url"><img src="URL" alt=""></a></td> </tr>
           <tr> <td><a href="url"><img src="URL" alt=""></a></td> <td><a href="url"><img src="URL" alt=""></a></td> </tr>
        </table>


more information - HTML Tutorials

no avatar
vipul20_j
 
Posts: 1
Joined: Tue Jul 05, 2011 8:17 pm
Location: delhi

by vipul20_j » Wed Jul 06, 2011 4:45 pm

you can enter the tables using <table> tag.
<table border="1">
<tr>
<td>row 1, column 1</td>
<td>row 1, column 2</td>
</tr>
<tr>
<td>row 2, column 1</td>
<td>row 2, column 2</td>
</tr>
</table>

Return to HTML/XHTML