Re: Valid HTML and hyperlinks

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Kevin Spencer (kevin_at_DIESPAMMERSDIEtakempis.com)
Date: 03/01/05

  • Next message: Kevin Spencer: "Re: Valid HTML and hyperlinks"
    Date: Tue, 1 Mar 2005 15:31:47 -0500
    
    

    Hi Mike,

    Did some research. Seems that the HTML 4.01 Strict doctype doesn't support
    the use of the "target" attribute in an anchor. According to the validation
    page you were kind enough to provide:

    "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). "

    After speaking with an HTML guru friend of mine, he told me that "target" is
    not supported by the HTML 4.01 strict doctype, unless you are using Frames,
    and the W3C site bears this out. He told me that this is one reson why
    almost nobody uses the "Strict" version of HTML 4.0. I would recommend using
    "Transitional" instead, unless there is some overarching reason why you
    should need to use the Strict DTD.

    -- 
    HTH,
    Kevin Spencer
    Microsoft MVP
    .Net Developer
    Neither a follower nor a lender be.
    "Mike Mueller" <MikeMueller@ecinet.net.net> wrote in message 
    news:eGodKwpHFHA.2860@TK2MSFTNGP12.phx.gbl...
    > The validator at w3c.org is saying it is invalid
    >
    > page in question: http://mikem.ecinet.net/template.htm
    > w3c's results:
    > http://validator.w3.org/check?uri=http%3A%2F%2Fmikem.ecinet.net%2Ftemplate.htm
    >
    > Mike
    >
    >
    >
    > "Steve Easton" <admin@95isalive.com> wrote in message
    > news:ueFrXOpHFHA.3332@TK2MSFTNGP14.phx.gbl...
    > : Who or what program is telling you it's non-compliant??
    > :
    > : -- 
    > : Steve Easton
    > : Microsoft MVP FrontPage
    > : 95isalive
    > : This site is best viewed............
    > : .......................with a computer
    > :
    > : "Mike Mueller" <MikeMueller@ecinet.net.net> wrote in
    > message
    > : news:OBQpQuoHFHA.4060@TK2MSFTNGP14.phx.gbl...
    > : > I am trying to make all of my web pages HTML 4.01
    > Strict.
    > : >
    > : > non-compliant hyperlink
    > : >     <a href="http://www.domain.com/"
    > : > target="_blank">Destination in new Window</a>
    > : >
    > : > how do I fix the issue with 'target='?
    > : >
    > : >
    > : >
    > :
    > :
    >
    > 
    

  • Next message: Kevin Spencer: "Re: Valid HTML and hyperlinks"

    Relevant Pages

    • Re: HTML 4.01 strict / transitional vs. XHTML 1.0
      ... greatest but is also old enough to have a mature level of support among ... So - HTML 4.01 Strict. ...
      (comp.infosystems.www.authoring.html)
    • Re: HTML4.01 STRICT and hyperlinks with target
      ... well built pages do not use target. ... definition of STRICT doctype is way too paternalizing for my taste. ... Good html, for use on the world-wide-web never ever under any ... That means letting the ...
      (comp.infosystems.www.authoring.html)
    • Re: HTML4.01 STRICT and hyperlinks with target
      ... to do to do with frames or windows, because HTML 4.o1 Strict ... browser behaviour, so belongs in Javascript not in HTML. ... It isn't because there is no DOCTYPE that allows target -- there is. ...
      (comp.infosystems.www.authoring.html)
    • Re: HTML4.01 STRICT and hyperlinks with target
      ... to do to do with frames or windows, because HTML 4.01 Strict ... browser behaviour and belongs in JavaScript, ... It isn't because there is no doctype that allows target -- there is. ...
      (comp.infosystems.www.authoring.html)
    • Re: How Important is it that a Site is HTML Compliant to W3 Standards?
      ... Transitional and not part of HTML 4 Strict; so you should be using an HTML ... Transitional DOCTYPE, and not an HTML 4 Strict one. ... If "target" is the only Transitional attribute you use, ...
      (uk.net.web.authoring)