Visualizzazione dei risultati da 1 a 6 su 6

Discussione: Errore validazione

  1. #1

    Errore validazione

    Volevo validare una mia pagina ma mi da questo errore come posso ovviare...



    1. Error Line 33 column 48: document type does not allow element "BODY" here.

    <body onLoad="P7_equalCols('c1','c2','c3','c4')">

    The element named above was found in a context where it is not allowed. This could mean that you have incorrectly nested elements -- such as a "style" element in the "body" section instead of inside "head" -- or two elements that overlap (which is not allowed).

    One common cause for this error is the use of XHTML syntax in HTML documents. Due to HTML's rules of implicitly closed elements, this error can create cascading effects. For instance, using XHTML's "self-closing" tags for "meta" and "link" in the "head" section of a HTML document may cause the parser to infer the end of the "head" section and the beginning of the "body" section (where "link" and "meta" are not allowed; hence the reported error).



  2. #2
    Utente di HTML.it L'avatar di salasir
    Registrato dal
    Apr 2004
    Messaggi
    1,883
    Hai controllato di aver chiuso tutti i tag precedenti (title, head, link, ...)

    Comunque, in questi casi, segnala il doctype utilizzato ed eventualmente il link della tua pagina così si riesce meglio ad aiutarti.

  3. #3
    il link è questo
    clicca

  4. #4
    mah in effetti non mi è molto chiaro, mi sembra tutto a posto. L'unico dubbio ce l'ho sul tag <noscript> che non so è possibile metterlo nell'head! che poi a cosa servirebbe qui?

  5. #5
    Utente di HTML.it
    Registrato dal
    Sep 2001
    Messaggi
    21,188
    Originariamente inviato da awd
    mah in effetti non mi è molto chiaro, mi sembra tutto a posto. L'unico dubbio ce l'ho sul tag <noscript> che non so è possibile metterlo nell'head! che poi a cosa servirebbe qui?
    Non esattamente.
    Il tag <noscript> puo` stare anche nella head, ma dipende cosa contiene.
    QUEL tag <noscript> non puo` stare dentro la head, dato che contiene un testo, che non puo` stare nella head.

    Invece se contenesse un CSS particolare oppure altri tag meta o altri oggetti che devono stare nella head,dovrebbe stare nella head.
    Nuova politica di maggiore severita` sui titoli delle discussioni: (ri)leggete il regolamento
    No domande tecniche in messaggi privati

  6. #6
    Eliminando il noscript viene validato... errore mio che avevo letto che poteva essere usato nell'ambito delle key per i mdr, e non mi sono documentato... grazie per le risposte... ciauz

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.