What is wrong with my marquee?

Discussion in 'HTML & Website Design' started by blueparukia, Aug 20, 2007.

  1. #1
    I am using an xHTML transitional doctype, and when I run it through the w3C validator, I get these errors with my marquee:

     Line 34, Column 62: there is no attribute "style"
     Line 34, Column 62: there is no attribute "width"
     Line 34, Column 62: there is no attribute "direction"
     Line 34, Column 106: an attribute specification must start with a name or name token.
    Code (markup):
    All of this is for my marquee.
    
    <marquee style="color:#FFFFFF" width="99%" direction="left"">Welcome to BeZDredge, we are currently in development.</marquee>
    Code (markup):
    What is worng with this?

    Thanks,

    BP
     
    blueparukia, Aug 20, 2007 IP
  2. nhl4000

    nhl4000 Well-Known Member

    Messages:
    479
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    110
    #2
    "The marquee element is not part of the HTML specification, so with the marquee element your document will never validate.
    You can use JavaScript instead to achieve the same effect."
     
    nhl4000, Aug 21, 2007 IP
  3. blueparukia

    blueparukia Well-Known Member

    Messages:
    1,564
    Likes Received:
    71
    Best Answers:
    7
    Trophy Points:
    160
    #3
    Right. Well, I'll need a JavaScript code for that then :(

    Anyone?
     
    blueparukia, Aug 21, 2007 IP
  4. nhl4000

    nhl4000 Well-Known Member

    Messages:
    479
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    110
  5. blueparukia

    blueparukia Well-Known Member

    Messages:
    1,564
    Likes Received:
    71
    Best Answers:
    7
    Trophy Points:
    160
    #5
    Cool, thanks. What one is the best for just a standard marquee?

    Thanks,

    BP
     
    blueparukia, Aug 21, 2007 IP