Adding Image Inside A Table - Html

How to add a image inside HTML table?

Snippet Code


  
Rate this page :
  [ 0 votes]

This html code allows you to add image inside the html table. Add your image using img tag and provide image name in src attribute then run the html code.

<table border='1'> <tr><th>Description</th><th>Image</th></tr> <tr> <td>Flower</td> <td><img alt="flower" src="rose.png" style="height: 100px;width:100px;" /></td> </tr> <tr> <td>Animal</td> <td><img alt="animal" src="puppys.jpg" style="height: 100px;width:100px;" /></td> </tr> </table>

Tags


Ask Questions

Ask Question