Page 1 of 2 12 LastLast
Results 1 to 10 of 20

Thread: Target attribute

  1. #1
    Join Date
    Jul 2005
    Posts
    29
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Target attribute

    Hi

    I have this problem that the target attibute doesnt seem to be Valid HTML 4.01 Strict!

    my code line is like this:
    Code:
    <li><a href="http://www.konservativungdom.dk" target="_blank">Konservativ ungdom</a></li>
    How do I fix the problem. I have many links, which should be opened in new windows...

    Thx

    Titoo

  2. #2
    Join Date
    Jun 2006
    Posts
    182
    Thanks
    0
    Thanked 14 Times in 14 Posts

    Default

    Use another DOCTYPE, ie. HTML 4.01 Transitional if you can't use XHTML.

  3. #3
    Join Date
    Sep 2005
    Posts
    882
    Thanks
    0
    Thanked 3 Times in 3 Posts

    Default

    Quote Originally Posted by DimX
    Use another DOCTYPE, ie. HTML 4.01 Transitional if you can't use XHTML.
    Please don't suggest people use XHTML. It's just not a good thing.

  4. #4
    Join Date
    Jun 2006
    Posts
    182
    Thanks
    0
    Thanked 14 Times in 14 Posts

    Default

    I know, I've read this document before, but many people still like XHTML so I suppose that they prefer it.

  5. #5
    Join Date
    Sep 2005
    Posts
    882
    Thanks
    0
    Thanked 3 Times in 3 Posts

    Default

    Have you ever heard the phrase "jump on the bandwagon". Many people just learning HTML read something like "XHTML is the next best thing, why are you using HTML?" They then use XHTML because they have no information to base their decision on. If you don't believe me walk into a book store, go to the computer books section and see how many HTML books are there compared to XHTML. People new to HTML are never really given the chance to make an informed decision.

  6. #6
    Join Date
    Dec 2004
    Location
    UK
    Posts
    2,358
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by DimX
    I know, I've read this document before, but many people still like XHTML so I suppose that they prefer it.
    No, they're just misinformed. They think it's new and somehow better, when it's just as old as HTML (the XHTML 1.0 Recommendation was published only a few months after the HTML 4.01 Recommendation) and unsupported by the most used browser on the Web (MSIE).

    Mike

  7. #7
    Join Date
    Jun 2006
    Posts
    182
    Thanks
    0
    Thanked 14 Times in 14 Posts

    Default

    And still, w3.org, w3schools.com, quirksmode.org, dynamicdrive.com and other web building related sites use XHTML. Even php's highlight_file/string function now produces XHTML valid output.

  8. #8
    Join Date
    Jul 2005
    Posts
    29
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    thx guys, but please stay on-topic ;o)

  9. #9
    Join Date
    Dec 2004
    Location
    UK
    Posts
    2,358
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by DimX
    And still, w3.org, w3schools.com, quirksmode.org, dynamicdrive.com and other web building related sites use XHTML. Even php's highlight_file/string function now produces XHTML valid output.
    What makes you think any of that changes the facts? Most sites on the Web are invalid, but it doesn't make that a good idea, either. Anyone can fall victim to fads, however much they should know better.


    Quote Originally Posted by Titties
    thx guys, but please stay on-topic
    This is a place for discussion, and discussions tend to wander.

    Mike

  10. #10
    Join Date
    Jun 2006
    Posts
    182
    Thanks
    0
    Thanked 14 Times in 14 Posts

    Default

    Well one thing is that it's easier for the user-agent to show (parse) XHTML page (if it is a valid xhtml page) because it's done with XML parser (not all browsers do that though). And XHTML just looks nicer when all tags are lowercase and attributes quoted.

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
  •