Visualizzazione dei risultati da 1 a 10 su 10
  1. #1
    Utente di HTML.it
    Registrato dal
    Jun 2009
    Messaggi
    100

    Qualcuno può aiutarmi???

    Ciao a tutti, vorrei un vostro parere...

    Vorrei validare una pagina con questo doctype
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">

    Il problema è che mi spara questi errori e non so dove mettere le mani

    Validation Output: 9 Errors

    1. Error Line 235, Column 8: end tag for "script" omitted, but OMITTAG NO was specified

    </ht…

    You may have neglected to close an element, or perhaps you meant to "self-close" an element, that is, ending it with "/>" instead of ">".
    2. Info Line 8: start tag was here

    ><script type="text/javascript" >

    3. Error Line 235, Column 8: end tag for "head" omitted, but OMITTAG NO was specified

    </ht…



    You may have neglected to close an element, or perhaps you meant to "self-close" an element, that is, ending it with "/>" instead of ">".
    4. Info Line 3: start tag was here

    ><head>

    5. Error Line 235, Column 8: "html" not finished but document ended

    </ht…

    6. Error Line 235, Column 8: end tag for "html" omitted, but OMITTAG NO was specified

    </ht…

    You may have neglected to close an element, or perhaps you meant to "self-close" an element, that is, ending it with "/>" instead of ">".
    7. Info Line 2: start tag was here

    ><html xmlns="http://www.w3.org/1999/xhtml" >

    8. Error Line 235, Column 8: missing marked section end

    </ht…

    9. Info Line 9, Column 2: marked section started here

    //<![CDATA[

    10. Error Line 235, Column 7: XML Parsing Error: CData section not finished

    </html>


    11. Error Line 235, Column 7: XML Parsing Error: Premature end of data in tag script line 8

    </html>


    12. Error Line 235, Column 7: XML Parsing Error: Premature end of data in tag head line 3

    </html>

    13. Error Line 235, Column 7: XML Parsing Error: Premature end of data in tag html line 2

    </html>

  2. #2
    Il validator dice che nn hai chiuso script come primo errore (spesso molti errori seguenti sono conseguenza del primo, e basta correggere quello perchè spariscano anche tutti -o quasi- gli altri). Se ci dai un link però forse è più facile.

  3. #3
    Utente di HTML.it
    Registrato dal
    Jun 2009
    Messaggi
    100
    Questo è il link
    http://www.hotel-cristallo.it
    Devo fare un esame per UNI sul Web Semantic ed il prof ci ha dato numerori siti da controllare e da validare...

    Questo sembra corretto o al meno quando genero il sorgente della pagina non vedo malfunzionamenti...

  4. #4
    Chiudi correttamente il CDATA così //]]> e vedrai magicamente apparire 65 errori da correggere Da una scorsa veloce, gli errori più comuni che hai fatto sono:
    a) non hai specificato l'attributo "alt" per nessuna immagine
    b) non hai escapato il &. anche nei link "&" va sostituito con "& amp ;" (senza spazi)
    c) col tuo doctype il tag img va chiuso così: [img][/img]
    cià.

  5. #5
    Amministratore L'avatar di Vincent.Zeno
    Registrato dal
    May 2003
    residenza
    Emilia-Romagna (tortellini und cappelletti land!)
    Messaggi
    20,812
    c'è anche un </body> in posizione scorretta

  6. #6
    Utente di HTML.it
    Registrato dal
    Jun 2009
    Messaggi
    100
    Grazie ragazzi...
    Mi erano proprio scappati...

    Sopratutto la questione dei link, non credevo che anche & andasse escaped...

    Ultima cosa allora anche i tag <link ... > vanno chiusi con /> ????

  7. #7
    Amministratore L'avatar di Vincent.Zeno
    Registrato dal
    May 2003
    residenza
    Emilia-Romagna (tortellini und cappelletti land!)
    Messaggi
    20,812
    http://www.w3schools.com/tags/tag_link.asp

    non lo usi l'abbecedario?

  8. #8
    Utente di HTML.it
    Registrato dal
    Jun 2009
    Messaggi
    100
    Ps. Ho corretto quasi tutto... Grazie ancora mi potete aiutare a trovare anche l'ultimo errore??

    A me interessa solo index... poi le altre pagine ci pensaranno i miei colleghi...

    Grazie ancora

  9. #9
    Non puoi mettere un <form> dentro un

    . Togli il

    . Se ti fa casino risistema il css.

  10. #10
    Utente di HTML.it
    Registrato dal
    Jun 2009
    Messaggi
    100
    Grazie a tutti per l'aiuto... Domani consegno così la relazione scritta grazie ancora...

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 © 2026 vBulletin Solutions, Inc. All rights reserved.