How do I validate this html?

enrociano

New Member
I designed a website for a company and everything works great. I decided that i might as well validate the whole thing so Ive been crushing errors. However, I came across this problem that I can't seem to figure out.
here is the error\[code\]Line 86, Column 106: Bad value 105px for attribute height on element img: Expected a digit but saw p instead.Line 86, Column 106: Bad value 216px for attribute width on element img: Expected a digit but saw p instead.\[/code\]
Here is the line\[code\]<p class="centeredImage"><img src="http://stackoverflow.com/questions/15746078/images/logo.png" height="105px" width="216px" alt="ATS Logo"><img src="http://stackoverflow.com/questions/15746078/images/header1.png" alt="ATS Header"></p>\[/code\]
I am using the p class of centeredImage to obviously center the two images in the div. I thought removing the two 'p' tags would fix it but it still gives me the same error. It seems to be a problem with the actual height and width attributes.Can someone tell me what is going on here and how to fix it?
 
Back
Top