Does anyone have any suggestions on how to rewrite this into valid XHTML 1.0 Strict?
<div>
<iframe src="http://www.holidaylettings.co.uk/avail_white.asp?home_id=97484" width="650" height="600" scrolling="no" frame-border="0" margin-height="0" margin-width="0"></iframe>
</div>
The validator is telling me:
You have used the attribute named above in your document, but the document type you are using does not support that attribute for this element. This error is often caused by incorrect use of the “Strict” document type with a document that uses frames (e.g. you must use the “Transitional” document type to get the “target” attribute), or by using vendor proprietary extensions such as “marginheight” (this is usually fixed by using CSS to achieve the desired effect instead).
This error may also result if the element itself is not supported in the document type you are using, as an undefined element will have no supported attributes; in this case, see the element-undefined error message for further information.
How to fix: check the spelling and case of the element and attribute, (Remember XHTML is all lower-case) and/or check that they are both allowed in the chosen document type, and/or use CSS instead of this attribute. If you received this error when using the <embed> element to incorporate flash media in a Web page, see the FAQ item on valid flash.
I’ve been over the code a hundred times and it seems correct. I also tried replacing the “<” and “>” with “<” and “>”, respectively, but it doesn’t remove the error.
Which leads me to ask another question: I’m using XHTML Strict 1.0 and I’m having a problem validating a page because the doctype does not support a certain piece of code. Can I change the doctype for that particular html file, to say Transitional 1.0 so as to get the page to validate, or do all the pages on my website have to be XHTML Strict 1.0 throughout? I would rather keep all pages in one doctype.
Also, I’m a bit lost as to the CSS that can be used to resolve the problem. What could I use?
The validator is also indicating 3 different errors for the same piece of code:
Line 12: Unescaped ‘<’ not allowed in attributes values
<meta name=“description” content="Come and…
and…
Line 12: attributes construct error
<meta name=“description” content="Come and…
and…
Line 12: Couldn’t find end of Start Tag meta line 10
<meta name=“description” content="Come and…
On another note, one strange thing that happened while correcting some of the more critical errors was that I was getting a similar error message for my meta description tag. I read on the forum about a vaguely similar problem another person was having and the advice was to cut down the meta description tag to 160 characters or less?, and so decided to cut down my meta description content to about 1/2. This miraculously solved the problem without even touching any of the tags, html code, etc. …only changed the content, even though the error message was indicating a problem with the “<” and “>”. Perplexing.
Any ideas?