How to add image in HTML Table?

Unknown
1
         


To add images in the HTML table simply we need to add the img tag in table.
As shown below:

 

EXAMPLE:

<HTML>
      <HEAD>
                  <TITLE>Image in Table</TITLE>
      </HEAD>
<BODY>
<TABLE border="1">
       <TR>
              <TD>Image column</TD>
              <TD>First column</TD>
              <TD>Second column</TD>
      </TR>
      <TR>
              <TD><IMG SRC="htmlrun1.jpg" width="100px" height="100px"></TD>
             <TD>one </TD>
             <TD>two</TD>
      </TR>
      <TR>
     </TR>
</TABLE>
</BODY>
</HTML>

OUTPUT:

Image in HTML


NOTE: Please make sure that your image is in same folder or add full path of image.







Post a Comment

1Comments
  1. You have provided valuable data for us. It is great and informative for everyone. Keep posting always. I am very thankful to you. Vector an image Mac

    ReplyDelete
Post a Comment