Re: Can src of an iframe be just HTML fragments?

On Fri, 8 Jun 2001, Peter K. Sheerin wrote:

> I'm trying to answer a question the validator can't tell me. I've got some <iframe> tags in a document that validates. The validator never sees the source referenced in these tags, and thus doesn't try to validate them.
> 
> Shouldn't it, though? Because:

No, it's a separate document, not part of your HTML page.

> The browsers do see this, because they have to render it. So do I need to make sure that any file referenced by an <iframe> is complete HTML that validates, with <html>, <head>, and <body>?

You should use a spidering tool to validate.  The WDG validator will give
you a one-off check, or the Site Valet will monitor it on a regular basis
and report if and when errors creep in.

-- 
Nick Kew

Received on Friday, 8 June 2001 19:43:31 UTC