Visualizzazione dei risultati da 1 a 6 su 6
  1. #1

    problema convalida form xhtml 1.1

    ciao a tutti
    nn riesco a convalidare questo maledetto piccolo form dichiarandomi ben 13 errori!in pratica tutto il form uff la pagina del sito è tutta convalidata tranne questo



    Codice PHP:
          <div id='sezione2_form'
                          <
    form action="" method="post" name="form1" id="form1">
                          
                            <
    span class="TestoForm">nome: </span>  </br>
                            
              <
    input name="nome" type="text" class="Testocolonna" id="nome"/>
              
        
    <
    span class="TestoForm">mail:  </span> </br>
         
        <
    input name="mail" type="text" class="Testocolonna" id="mail" />
        
        <
    span class="TestoForm">messaggio:</span>  </br>
        
        <
    textarea name="messaggio" cols="19" rows="3" class="Testocolonna" id="messaggio" accesskey="m"></textarea>

      <
    input name="submit" type="submit" class="Testocolonna" id="submit" tabindex="11" title="Invia messaggio" value="Invia" />
    </
    form>
     </
    div
                        
           </
    div

  2. #2
    Utente di HTML.it
    Registrato dal
    Sep 2001
    Messaggi
    21,188
    Potresti aiutarci fornendo gli errori segnalati.

    Poi dal titolo capisco che vuoi XHTML 1.1 (di cui non sono esperto - non funziona in IE6 e quindi e` poco usato)

    Comunque segnalo gli errori che vedo ad occhio:
    - usi l'attributo name nel tag <form> (dove non esiste)
    - </br> e` una tua invenzione? Non esiste in nessuna DTD (3x)
    -
    manca la / di chiusura
    - id="submit" submit e` un nome usato dal DOM: non credo si possa usarlo per un id
    Nuova politica di maggiore severita` sui titoli delle discussioni: (ri)leggete il regolamento
    No domande tecniche in messaggi privati

  3. #3
    Originariamente inviato da Mich_
    Potresti aiutarci fornendo gli errori segnalati.

    Poi dal titolo capisco che vuoi XHTML 1.1 (di cui non sono esperto - non funziona in IE6 e quindi e` poco usato)

    Comunque segnalo gli errori che vedo ad occhio:
    - usi l'attributo name nel tag <form> (dove non esiste)
    - </br> e` una tua invenzione? Non esiste in nessuna DTD (3x)
    -
    manca la / di chiusura
    - id="submit" submit e` un nome usato dal DOM: non credo si possa usarlo per un id
    beh io uso i.e 7 (effettivamente con i.e 6 ci sono cose che si vedono un pò diverse)

    come non esiste l'attributo "name"?


    stranamente se chiudo il tag mi chiama errore ma funziona in egual modo booo

    Originariamente inviato da Mich_
    - id="submit" submit e` un nome usato dal DOM: non credo si possa usarlo per un id

    sarebbe? nn ne ho idea

  4. #4
    errori



    # Error Line 65 column 42: there is no attribute "name".

    <form action="" method="post" name="form1" id="form1">

    You have used the attribute named above in your document, but the document type you are using does not support that attribute for this element. This error is often caused by incorrect use of the "Strict" document type with a document that uses frames (e.g. you must use the "Transitional" document type to get the "target" attribute), or by using vendor proprietary extensions such as "marginheight" (this is usually fixed by using CSS to achieve the desired effect instead).

    This error may also result if the element itself is not supported in the document type you are using, as an undefined element will have no supported attributes; in this case, see the element-undefined error message for further information.

    How to fix: check the spelling and case of the element and attribute, (Remember XHTML is all lower-case) and/or check that they are both allowed in the chosen document type, and/or use CSS instead of this attribute. If you received this error when using the <embed> element to incorporate flash media in a Web page, see the FAQ item on valid flash.


    # Error Line 67 column 47: document type does not allow element "span" here; missing one of "p", "h1", "h2", "h3", "h4", "h5", "h6", "div", "pre", "address", "fieldset", "ins", "del" start-tag.

    <span class="TestoForm">nome: </span> </br>

    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 "

    " or "<table>") inside an inline element (such as "<a>", "<span>", or "<font>").


    # Error Line 67 column 67: end tag for element "br" which is not open.

    ... <span class="TestoForm">nome: </span> </br>

    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 occured in a script section of your document, you should probably read this FAQ entry.


    # Error Line 69 column 69: document type does not allow element "input" here; missing one of "p", "h1", "h2", "h3", "h4", "h5", "h6", "div", "pre", "address", "fieldset", "ins", "del" start-tag.

    ...ome" type="text" class="Testocolonna" id="nome"/>

    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 "

    " or "<table>") inside an inline element (such as "<a>", "<span>", or "<font>").


    # Error Line 71 column 7: document type does not allow element "br" here; missing one of "p", "h1", "h2", "h3", "h4", "h5", "h6", "div", "pre", "address", "fieldset", "ins", "del" start-tag.


    <span class="TestoForm">mail: </span> </br>

    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 "

    " or "<table>") inside an inline element (such as "<a>", "<span>", or "<font>").


    # Error Line 71 column 8: end tag for "br" omitted, but OMITTAG NO was specified.


    <span class="TestoForm">mail: </span> </br>

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


    # Info Line 71 column 4: start tag was here.


    <span class="TestoForm">mail: </span> </br>

    # Error Line 71 column 31: document type does not allow element "span" here; missing one of "p", "h1", "h2", "h3", "h4", "h5", "h6", "div", "pre", "address", "fieldset", "ins", "del" start-tag.


    <span class="TestoForm">mail: </span> </br>

    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 "

    " or "<table>") inside an inline element (such as "<a>", "<span>", or "<font>").


    # Error Line 71 column 51: end tag for element "br" which is not open.


    <span class="TestoForm">mail: </span> </br>

    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 occured in a script section of your document, you should probably read this FAQ entry.


    # Error Line 73 column 67: document type does not allow element "input" here; missing one of "p", "h1", "h2", "h3", "h4", "h5", "h6", "div", "pre", "address", "fieldset", "ins", "del" start-tag.

    ...mail" type="text" class="Testocolonna" id="mail" />

    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 "

    " or "<table>") inside an inline element (such as "<a>", "<span>", or "<font>").


    # Error Line 75 column 27: document type does not allow element "span" here; missing one of "p", "h1", "h2", "h3", "h4", "h5", "h6", "div", "pre", "address", "fieldset", "ins", "del" start-tag.

    <span class="TestoForm">messaggio:</span> </br>

    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 "

    " or "<table>") inside an inline element (such as "<a>", "<span>", or "<font>").


    # Error Line 75 column 51: end tag for element "br" which is not open.

    <span class="TestoForm">messaggio:</span> </br>

    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 occured in a script section of your document, you should probably read this FAQ entry.


    # Error Line 77 column 99: document type does not allow element "textarea" here; missing one of "p", "h1", "h2", "h3", "h4", "h5", "h6", "div", "pre", "address", "fieldset", "ins", "del" start-tag.

    ...colonna" id="messaggio" accesskey="m"></textarea>

    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 "

    " or "<table>") inside an inline element (such as "<a>", "<span>", or "<font>").


    # Error Line 79 column 123: document type does not allow element "input" here; missing one of "p", "h1", "h2", "h3", "h4", "h5", "h6", "div", "pre", "address", "fieldset", "ins", "del" start-tag.

    ...tle="Invia messaggio" value="Invia" />

    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 "

    " or "<table>") inside an inline element (such as "<a>", "<span>", or "<font>").

  5. #5
    Utente di HTML.it
    Registrato dal
    Sep 2001
    Messaggi
    21,188
    Non ho letto tutto, ma vedo che il validatore ha trovato le stesse cose che ho trovato io, piu` altre.

    In particolare fa notare che non puoi inserire dei testi (o elementi di tipo inline) direttamente dentro il <div>: per i testi devi usare un

    o altri elementi che possno contenere testo.

    Ma poi perche` non usi una struttura semanticamente corretta, invece che usare una serie di testi buttati li`?
    Vedi ad esempio:
    Accessible CSS Forms: Using CSS to Create a Two-Column Layout
    Form fluidi con i css
    Styling form controls with CSS

    Ma poi chi ti fa usare XHTML 1.1? Da come scrivi pare che non conosci neppure XHTML 1.0. Forse ti puo` servire http://xhtml.html.it/guide/leggi/52/guida-xhtml/ (soprattuto le prime lezioni)
    Nuova politica di maggiore severita` sui titoli delle discussioni: (ri)leggete il regolamento
    No domande tecniche in messaggi privati

  6. #6
    Originariamente inviato da Mich_

    Ma poi chi ti fa usare XHTML 1.1? Da come scrivi pare che non conosci neppure XHTML 1.0. Forse ti puo` servire http://xhtml.html.it/guide/leggi/52/guida-xhtml/ (soprattuto le prime lezioni)

    che domanda è


    Originariamente inviato da Mich_
    Non ho letto tutto, ma vedo che il validatore ha trovato le stesse cose che ho trovato io, piu` altre.

    In particolare fa notare che non puoi inserire dei testi (o elementi di tipo inline) direttamente dentro il <div>: per i testi devi usare un

    o altri elementi che possno contenere testo.

    Ma poi perche` non usi una struttura semanticamente corretta, invece che usare una serie di testi buttati li`?
    Vedi ad esempio:
    Accessible CSS Forms: Using CSS to Create a Two-Column Layout
    Form fluidi con i css
    Styling form controls with CSS

    Ma poi chi ti fa usare XHTML 1.1? Da come scrivi pare che non conosci neppure XHTML 1.0. Forse ti puo` servire http://xhtml.html.it/guide/leggi/52/guida-xhtml/ (soprattuto le prime lezioni)
    quello che dici nn vale per tutto il sito che ho convalidato, è solo questa parte di codice che non mi viene convalidata

    cmq grazie per i link ci do subito un'occhiata anzi + di una

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.