Results 1 to 3 of 3

Thread: Anchors and the W3C *Resolved*

  1. #1

    Thread Starter
    Fanatic Member punkpie_uk's Avatar
    Join Date
    Sep 2001
    Location
    UK
    Posts
    645

    Anchors and the W3C *Resolved*

    ... <div onclick="document.location.href='javascript://'"><a href="dhtml_overview.asp">Quick Start</a></div> ...

    Error: element "A" not allowed here; check which elements this element may be contained within

    I ran some code through the W3C Validator and got an error and I cant figure out why. Why isn't it allowed here?
    Last edited by punkpie_uk; May 29th, 2002 at 02:54 AM.
    SPREAD THE WORD!!! Are You Lee McCormick? Because I Am



    Lee M McCormick
    [email protected]

    Lee McCormick.com - Live
    Dynamically Webbed.com - In development but live

  2. #2
    Fanatic Member cpradio's Avatar
    Join Date
    Apr 2002
    Posts
    616
    try removing the onClick command and see if that fixes it. I think its due to you have the onClick command so it defeats the purpose of the <a> tag.

    -Matt
    http://cpradio.net/
    Administrator @ WDForums and a Moderator @ WebXpertz City Forums

  3. #3

    Thread Starter
    Fanatic Member punkpie_uk's Avatar
    Join Date
    Sep 2001
    Location
    UK
    Posts
    645
    Of course.

    Cheers, that got it.
    SPREAD THE WORD!!! Are You Lee McCormick? Because I Am



    Lee M McCormick
    [email protected]

    Lee McCormick.com - Live
    Dynamically Webbed.com - In development but live

Posting Permissions

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



Click Here to Expand Forum to Full Width