Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

HTML HTML Tables Table Basics Create a Basic Table

Patricia Acevedo
Patricia Acevedo
1,292 Points

HOW I add a image to a <tr>?

If I want to add a mini image/picture to the <tr> how do I do that?

2 Answers

Hi Patricia,

Actually, tr is a row so you would need to put the image in a table cell or td..so it might look something like the following:

<table>
    <tr>

      <td>
         <img src="http://mywebsite.com/img/filename.jpg" alt="image description here" height=100 width=100 />
      </td>

     </tr>

</table>

Also, here at Treehouse is a good short specific series on tables:

http://teamtreehouse.com/library/html-tables

Hope that helps

Yay!

Have fun!