Problem with <img> | Sololearn: Learn to code for FREE!

+1

Problem with <img>

Hi everyone, I’ve just come across a little problem... When I type <img src=“Pic 1.jpg” align=“center” border=“5px” alt=“” /> i find out that: - there is just the border without the pic inside - the border (so the pic) is not aligned to center, but it’s placed on the left What should I do?

1/20/2018 7:06:33 AM

Nicolò

1 Answer

New Answer

+9

https://www.w3schools.com/tags/tryit.asp?filename=tryhtml_img_border Note: in <img> tag align="center" doesnt take affect.. use <center> tag for center image