Re: Valid HTML and hyperlinks
From: Kevin Spencer (kevin_at_DIESPAMMERSDIEtakempis.com)
Date: 03/01/05
- Previous message: Mike Mueller: "Re: intermittant Changing color of text between 2 colors"
- In reply to: Mike Mueller: "Re: Valid HTML and hyperlinks"
- Next in thread: Kevin Spencer: "Re: Valid HTML and hyperlinks"
- Reply: Kevin Spencer: "Re: Valid HTML and hyperlinks"
- Messages sorted by: [ date ] [ thread ]
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='? > : > > : > > : > > : > : > >
- Previous message: Mike Mueller: "Re: intermittant Changing color of text between 2 colors"
- In reply to: Mike Mueller: "Re: Valid HTML and hyperlinks"
- Next in thread: Kevin Spencer: "Re: Valid HTML and hyperlinks"
- Reply: Kevin Spencer: "Re: Valid HTML and hyperlinks"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|