w3it.org
+ Reply to Thread
Page 2 of 2 FirstFirst 12
Results 11 to 17 of 17
  1. #11
    Unregistered Guest

    Cool Thanks for the great tip

    Quote Originally Posted by axew3 View Post
    Code:
    <a href="http://www.w3it.org" onclick="window.open(this.href,'_blank');return false;">w3it.org</a>
    Thanks for the great tip axew3, we're now using it at http://www.myperformancepitstop.com

    Andrew

  2. #12
    JasonD Guest

    Default Or you could...

    Or you could just use this:

    [code]<a rel=”external” href='http://www.google.com' />Google</a>[code]

  3. #13
    Aurifier Guest

    Default Erm...

    Quote Originally Posted by JasonD View Post
    Or you could just use this:

    <a rel=”external” href='http://www.google.com' />Google</a>
    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.

  4. #14
    antrax13 Guest

    Default Element Not Allowed

    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!!

  5. #15
    Join Date
    Mar 2007
    Location
    Italy
    Posts
    1,585

    Default element not allowed: why and solutions

    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?
    SOLUTION:
    yes! the problem come out due to the reason that the
    Code:
    <a href="http://www.w3it.org" onclick="window.open(this .href,'_blank');return false;">w3it.org</a>
    so the
    Code:
    <a>
    element, need to be nested inside another element, like the tag
    Code:
    <ins>
    ... so to validate, try this:
    Code:
    <ins><a href="http://www.w3it.org" onclick="window.open(this .href,'_blank');return false;">w3it.org</a></ins>
    or just, if the code structure allow this, try this:
    Code:
    <p><a href="http://www.w3it.org" onclick="window.open(this .href,'_blank');return false;">w3it.org</a></p>
    explanation: some html elements, need to be coded inside others (nested) to be validated as xhtml strict or xhtml DTD.

  6. #16
    Unregistered Guest

    Default Great tip!

    Thanks! This was one of the first Google results I found, and it did the trick!
    -Sean the Bean

  7. #17
    Join Date
    Mar 2007
    Location
    Italy
    Posts
    1,585

    Default We should look from now on at ...

    Hello lovely people this 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.

Tags for this Thread

Posting Permissions

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