Or you could just use this:
[code]<a rel=”external” href='http://www.google.com' />Google</a>[code]
![]() |
|
| www ITBlog Articles Topics Forums Main |
Thanks for the great tip axew3, we're now using it at http://www.myperformancepitstop.com
Andrew
Or you could just use this:
[code]<a rel=”external” href='http://www.google.com' />Google</a>[code]
That's probably not a good solution. The W3Schools page ( http://www.w3schools.com/TAGS/att_a_rel.asp ) says it isn't supported in any major browsers.
Hi,
I try to use this:
<a href="http://www.w3it.org" onclick="window.open(this .href,'_blank');return false;">w3it.org</a>
but in http://validator.w3.org/ have this error:
Error Line 366, Column 86: document type does not allow element "a" here; missing one of "p", "h1", "h2", "h3", "h4", "h5", "h6", "div", "pre", "address", "fieldset", "ins", "del" start-tag
….w3it.org" onclick="window.open(this .href,'_blank');return false;" (> error with this) w3it.org</a>
✉
The mentioned element is not allowed to appear in the context in which you've placed it; the other mentioned elements are the only ones that are both allowed there and can contain the element mentioned. This might mean that you need a containing element, or possibly that you've forgotten to close a previous element.
One possible cause for this message is that you have attempted to put a block-level element (such as "<p>" or "<table>") inside an inline element (such as "<a>", "<span>", or "<font>").
Its posible solve this bug?
Thanks!!
SOLUTION:I try to use this:
<a href="http://www.w3it.org" onclick="window.open(this .href,'_blank');return false;">w3it.org</a>
but in http://validator.w3.org/ have this error:
Error Line 366, Column 86: document type does not allow element "a" here; missing one of "p", "h1", "h2", "h3", "h4", "h5", "h6", "div", "pre", "address", "fieldset", "ins", "del" start-tag
….w3it.org" onclick="window.open(this .href,'_blank');return false;" (> error with this) w3it.org</a>
The mentioned element is not allowed to appear in the context in which you've placed it; the other mentioned elements are the only ones that are both allowed there and can contain the element mentioned. This might mean that you need a containing element, or possibly that you've forgotten to close a previous element.
One possible cause for this message is that you have attempted to put a block-level element (such as "<p>" or "<table>") inside an inline element (such as "<a>", "<span>", or "<font>").
Its possible solve this bug?
yes! the problem come out due to the reason that the
so theCode:<a href="http://www.w3it.org" onclick="window.open(this .href,'_blank');return false;">w3it.org</a>
element, need to be nested inside another element, like the tagCode:<a>
... so to validate, try this:Code:<ins>
or just, if the code structure allow this, try this:Code:<ins><a href="http://www.w3it.org" onclick="window.open(this .href,'_blank');return false;">w3it.org</a></ins>
explanation: some html elements, need to be coded inside others (nested) to be validated as xhtml strict or xhtml DTD.Code:<p><a href="http://www.w3it.org" onclick="window.open(this .href,'_blank');return false;">w3it.org</a></p>
Thanks! This was one of the first Google results I found, and it did the trick!
-Sean the Bean
Hello lovely peoplethis is where and what we'll be interested in from now on, about coding hyperlinks as XHTML compliant, the CSS3 W3C Hyperlink Module.
Is maybe time to start developing web pages using CSS3 properties also about hyperlinks to have pages xhtml strict without any trick:
The CSS3 hyperlinks page
I've still not test any browser in this way, as i've stop any pc activities for some time ... for sept all should return up and running for my health i hope! But i like and i will try before if possible, of course, reporting here tests and results (this is really only an hope that browsers today are ready to parse ok all css3 properties).
Anybody have try CSS3 hyperlinks with latest released browsers versions, like firefox, chrome, opera, explorer and so on?
P.s I had try more or less 20 days ago: CSS3 in all browsers i had try, still do not work about hyperlinks.
Bookmarks