Visualizzazione dei risultati da 1 a 4 su 4

Discussione: Aiuto convalida

  1. #1

    Aiuto convalida

    Ciao sto cercando di convalidare una homepage di joomla, template fatto da me, mi da una sessantina di errori, la maggiorparte sulle tabelle, che non capisco tipo questi qui sotto:

    il fatto è che non credo ci siano tutti questi tag td in più o in meno, o non chiusi dato che le tabelle le ho fatte manualmente, forse le tabelle per essere valide e non dare errore devono avere qualche attributo tipo caption non lo so, magari sono capitati anche a voi errori del genere, poi non so rintracciarli nel codice della pagina visto che sono pagine.php, mi aiutate a capire come si convalidano pagine del genere?? vi ringrazio spero che torni utile anche agli altri.
    __________________________________________

    # Error Line 348, Column 8: end tag for "table" omitted, but OMITTAG NO was specified

    </div>



    You may have neglected to close an element, or perhaps you meant to "self-close" an element, that is, ending it with "/>" instead of ">".

    __________________________________________________

    # Error Line 91, Column 17: end tag for element "td" which is not open

    </td>



    The Validator found an end tag for the above element, but that element is not currently open. This is often caused by a leftover end tag from an element that was removed during editing, or by an implicitly closed element (if you have an error related to an element being used where it is not allowed, this is almost certainly the case). In the latter case this error will disappear as soon as you fix the original problem.

    If this error occurred in a script section of your document, you should probably read this FAQ entry.
    ____________________________________________
    # Error Line 97, Column 20: end tag for "td" omitted, but OMITTAG NO was specified

    </table>



    You may have neglected to close an element, or perhaps you meant to "self-close" an element, that is, ending it with "/>" instead of ">".

    ________________________________________________
    # Error Line 388, Column 25: end tag for element "table" which is not open

    </table>



    The Validator found an end tag for the above element, but that element is not currently open. This is often caused by a leftover end tag from an element that was removed during editing, or by an implicitly closed element (if you have an error related to an element being used where it is not allowed, this is almost certainly the case). In the latter case this error will disappear as soon as you fix the original problem.

    If this error occurred in a script section of your document, you should probably read this FAQ entry.
    _____________________________________
    # Error Line 426, Column 9: end tag for element "div" which is not open

    </div>



    The Validator found an end tag for the above element, but that element is not currently open. This is often caused by a leftover end tag from an element that was removed during editing, or by an implicitly closed element (if you have an error related to an element being used where it is not allowed, this is almost certainly the case). In the latter case this error will disappear as soon as you fix the original problem.

    If this error occurred in a script section of your document, you should probably read this FAQ entry.
    _______________________________________

    Error Line 144, Column 26: XML Parsing Error: Opening and ending tag mismatch: tr line 126 and table

    </table>

  2. #2
    Di solito il validatore ti dice esattamente cosa vorrebbe che tu facessi...

    Invece di "non credere che..." verifica l'effettivo stato delle chiusure. Che ci vorrà mai?! (il fatto che le tabelle NON si debbano usare per fare layout va fuori dal range di correzioni richieste per un validatore, quindi non è quello il problema). I caption non sono obbligatori mi pare.
    Fantasupermegafavolipermeramagicultra irresistibili
    4 10 30 100 1001 personaggi insuperabili fantaincredibili ultraimpossibili iperterribili irresistibili!!!

    "... a quell'età ... bastava un dito per fare la pace ..."
    fotine

  3. #3
    ho trovato sul web che questo errore capita quando ci sono tabelle annidate, una dentro l'altra, è il mio caso! devo trasformare la tabella contenitore allora in un div ?? dice così

    It means two things:

    1) You've nested tables, something that is very bad.

    2) You've omitted the end tag for one of your "TD" elements.

    non lo sapevo che in xhtml, non si devono mai annidare le tabelle, addirittura tu dici che non si devono usare del tutto, nemmeno per i box arrrotondati, mi veniva più semplice!! non so se vi risulta

  4. #4
    Originariamente inviato da surferbloggy
    non lo sapevo che in xhtml, non si devono mai annidare le tabelle, addirittura tu dici che non si devono usare del tutto, nemmeno per i box arrrotondati, mi veniva più semplice!! non so se vi risulta
    In html e in xhtml... è uguale... basta seguire i dettami del doctype scelto.

    Esattamente come il coltello serve a tagliare il cibo e la forchetta a portarlo alla bocca... anche le tabelle sono state concepite con degli scopi: intabellare dati. Poi per fare layout si usano i div. Non muore nessuno se usi le tabelle per fare grafica (o il coltello per portare il cibo alla bocca) ma qualcosa si può dire che "non è stato rispettato" quindi un validatore (o un galateo) può aver qualcosa da ridire.
    Lo strano però è che a me di solito il validatore non da' problemi di annidamento tabelle.
    Fai un file separato con due tabelle annidate molto semplici e vedi che ti dice...
    Fantasupermegafavolipermeramagicultra irresistibili
    4 10 30 100 1001 personaggi insuperabili fantaincredibili ultraimpossibili iperterribili irresistibili!!!

    "... a quell'età ... bastava un dito per fare la pace ..."
    fotine

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.