SitePoint Sponsor

User Tag List

Results 1 to 6 of 6
  1. #1
    SitePoint Zealot
    Join Date
    Feb 2004
    Location
    Cambridge, England
    Posts
    117
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Invalid html code

    I have designed this template html page:

    http://www.step-up-to-science.com/St.../template.html

    and attempted to validate it using the service at http://validator.w3.org/. The errors are listed below. Does anyone know what is wrong with the code. I would very much appreciate some help.

    Thanks,
    Philippa

    Line 154, column 15: there is no attribute "HEIGHT"

    <embed height="100" pluginspage="http://www.macromedia.com/go/getflashplayer" s

    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.


    ?

    2.

    Line 154, column 33: there is no attribute "PLUGINSPAGE"

    <embed height="100" pluginspage="http://www.macromedia.com/go/getflashplayer" s

    ?

    3.

    Line 154, column 83: there is no attribute "SRC"

    ...acromedia.com/go/getflashplayer" src="images/Banner.swf" type="application/x-

    ?

    4.

    Line 154, column 108: there is no attribute "TYPE"

    ...player" src="images/Banner.swf" type="application/x-shockwave-flash" width="1

    ?

    5.

    Line 154, column 146: there is no attribute "WIDTH"

    ...application/x-shockwave-flash" width="100%" quality="best" play="true" scale=

    ?

    6.

    Line 154, column 161: there is no attribute "QUALITY"

    ...hockwave-flash" width="100%" quality="best" play="true" scale="exactfit">

    ?

    7.

    Line 154, column 173: there is no attribute "PLAY"

    ...sh" width="100%" quality="best" play="true" scale="exactfit">

    ?

    8.

    Line 154, column 186: there is no attribute "SCALE"

    ...0%" quality="best" play="true" scale="exactfit">

    ?

    9.

    Line 154, column 196: element "EMBED" undefined

    ...y="best" play="true" scale="exactfit">

    You have used the element named above in your document, but the document type you are using does not define an element of that name. 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 "Frameset" document type to get the "<frameset>" element), or by using vendor proprietary extensions such as "<spacer>" or "<marquee>" (this is usually fixed by using CSS to achieve the desired effect instead).


    ?

  2. #2
    SitePoint Addict
    Join Date
    Mar 2004
    Location
    Europe
    Posts
    214
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I think it is just that - those attributes are not valid for that element. They may work but that does not mean they conform to standards.
    all code tested in:
    FireFox0.9, Opera7.51, Mozilla1.7, InternetExplorer5+6

  3. #3
    SitePoint Zealot
    Join Date
    Feb 2004
    Location
    Cambridge, England
    Posts
    117
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thank's for your reply. Do you know how they should conform to standards?

    Philippa

  4. #4
    SitePoint Zealot
    Join Date
    Jun 2004
    Location
    Nova Scotia, Canada
    Posts
    172
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    For Flash objects, there is not a standard yet, but alistapart has this neat little trick to help conform to standards:

    http://www.alistapart.com/articles/flashsatay/
    ----
    Cheers, Jamie

  5. #5
    Robert Wellock silver trophybronze trophy xhtmlcoder's Avatar
    Join Date
    Apr 2002
    Location
    A Maze of Twisty Little Passages
    Posts
    6,316
    Mentioned
    60 Post(s)
    Tagged
    0 Thread(s)
    Basically the "embed" doesn't exist in mainstream HTML though can be introduced into XHTML like I have done in the past.

  6. #6
    SitePoint Zealot
    Join Date
    Feb 2004
    Location
    Cambridge, England
    Posts
    117
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thank's for your suggestions. I've successfully created an XHTML test page using the tip from the link above.

    By the way, is it good practice to create XHTML pages rather than HTML pages.

    Philippa


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •