WordPress.org

Ready to get started?Download WordPress

Forums

Iframe do not validate (3 posts)

  1. erngren
    Member
    Posted 4 years ago #

    Hello
    Hope someone who is good on the code can help me get my page to validation.
    I get 1 irritable wrong with an iframe
    Line 329, Column 128: document type does not allow element "iframe" here

    ... 0 "frameborder =" 0 "marginwidth =" 0 "marginheight =" 0 "scrolling =" no "> </ iframe> ');

    The element named above was found in a context where it is not allowed. This could mean that you have incorrectly nested elements - such as a "style" element in the "body" section instead of inside "head" - or two elements that overlap (which is not allowed).

    One common cause for this error is the use of XHTML syntax in HTML documents. Due to HTML's rules of implicitly closed elements, this error can create cascading effects. For instance, using XHTML's "self-closing" tags for "meta" and "link" in the "head" section of a HTML document may cause the parser to infers the end of the "head" section and the beginning of the "body "section (where" link "and" meta "are not allowed, hence the reported error).

  2. Rev. Voodoo
    Volunteer Moderator
    Posted 4 years ago #

    link to your page...or to the validators output would help us see the error in context

  3. erngren
    Member
    Posted 4 years ago #

    Oh im so stupid, sorry
    http://blogg.erngren.com

    1. Error Line 329, Column 128: document type does not allow element "iframe" here

    …0" frameborder="0" marginwidth="0" marginheight="0" scrolling="no"></iframe>');

    The element named above was found in a context where it is not allowed. This could mean that you have incorrectly nested elements -- such as a "style" element in the "body" section instead of inside "head" -- or two elements that overlap (which is not allowed).

    One common cause for this error is the use of XHTML syntax in HTML documents. Due to HTML's rules of implicitly closed elements, this error can create cascading effects. For instance, using XHTML's "self-closing" tags for "meta" and "link" in the "head" section of a HTML document may cause the parser to infer the end of the "head" section and the beginning of the "body" section (where "link" and "meta" are not allowed; hence the reported error).

Topic Closed

This topic has been closed to new replies.

About this Topic