w3it.org
+ Rispondi alla Discussione
Pagina 2 di 2 PrimaPrima 12
Risultati da 11 a 17 di 17
  1. #11
    Unregistered Guest

    Cool Thanks for the great tip

    Citazione Originariamente Scritto da axew3 Visualizza Messaggio
    Codice:
    <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

    Predefinito 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

    Predefinito Erm...

    Citazione Originariamente Scritto da JasonD Visualizza Messaggio
    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

    Predefinito 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
    Data Registrazione
    Mar 2007
    Località
    Italy
    Messaggi
    1,532

    Predefinito 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
    Codice:
    <a href="http://www.w3it.org" onclick="window.open(this .href,'_blank');return false;">w3it.org</a>
    so the
    Codice:
    <a>
    element, need to be nested inside another element, like the tag
    Codice:
    <ins>
    ... so to validate, try this:
    Codice:
    <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:
    Codice:
    <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

    Predefinito Great tip!

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

  7. #17
    Data Registrazione
    Mar 2007
    Località
    Italy
    Messaggi
    1,532

    Predefinito 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.

Tag per Questa Discussione

Permessi di Scrittura

  • Tu puoi inviare nuove discussioni
  • Tu puoi inviare risposte
  • Tu non puoi inviare allegati
  • Tu non puoi modificare i tuoi messaggi
  •  
  • Il codice BB è opzione attiva
  • Le smilies sono opzione attiva
  • Il codice [IMG] è opzione attiva
  • [VIDEO] code is opzione attiva
  • Il codice HTML è opzione NON attiva