Roses89
Junior Poster in Training
55 posts since Apr 2010
Reputation Points: 10
Solved Threads: 0
almostbob
Posting Sensei
3,149 posts since Jan 2009
Reputation Points: 571
Solved Threads: 376
I put it in the body.It still doesnt work:s
it still gives:
1. Error Line 22, Column 37: document type does not allow element "img" here; missing one of "p", "h1", "h2", "h3", "h4", "h5", "h6", "div", "address", "fieldset", "ins", "del" start-tag

✉
The mentioned element is not allowed to appear in the context in which you've placed it; the other mentioned elements are the only ones that are both allowed there and can contain the element mentioned. This might mean that you need a containing element, or possibly that you've forgotten to close a previous element.
One possible cause for this message is that you have attempted to put a block-level element (such as "" or "
") inside an inline element (such as "", "", or "").
could you try it?
thats the validator site.
Roses89
Junior Poster in Training
55 posts since Apr 2010
Reputation Points: 10
Solved Threads: 0
diafol
Rhod Gilbert Fan (ardav)
7,794 posts since Oct 2006
Reputation Points: 1,170
Solved Threads: 1,080
What the...??It STILL gives me an error!!:(
Roses89
Junior Poster in Training
55 posts since Apr 2010
Reputation Points: 10
Solved Threads: 0
Sorry - I placed the img in a 'p' - worked fine. AFAIK - Strict needs all images to be placed in a container (usually a block level element). I wasn't aware of this previously and can't find any details on it. Change strict to transitional if you don't want to do this. It will validate fine in transitional.
diafol
Rhod Gilbert Fan (ardav)
7,794 posts since Oct 2006
Reputation Points: 1,170
Solved Threads: 1,080
Hmm...Il try placing it in a block level element.Actually, i have to use strict.but thanks for the help.Il try it out and see if it works then.
Roses89
Junior Poster in Training
55 posts since Apr 2010
Reputation Points: 10
Solved Threads: 0