Stuart Ferguson Stuart Ferguson - 4 months ago 6
HTML Question

Modifying a table

Hey I'm having trouble with adding the picture to a HTML Table… planning to use an image from either Google search OR pics from my hard drive.

What am I doing wrong?

Answer

Syntax error on your code
1.Closing quotes are misssing for the img src
2.No need to use semi-colon

Same code works fine without syntax error with saome dummy image below

<tr>
  <td style="border: 1px solid black; text-align: center">Tiffany Paige</td>
  <td style="border: 1px solid black; text-align: center">Garlic Naan</td>
  <td style="border: 1px solid black; text-align: center"><img src="http://www.w3schools.com/css/img_fjords.jpg" width="85"></td>
</tr>

http://codepen.io/nagasai/pen/akadRd

Comments