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

    Convalidare la pagina xhtml

    Sto provando a convalidare la mia pagina xhtml, ma mi restituisce questi errori del form, non so propio cosa potrebbe essere, per il resto è tutto ok

    Line 51, column 51: document type does not allow element "form" here; missing one of "object", "applet", "map", "iframe", "ins", "del" start-tag

    <form name="logIn" method="post" action="login.php">

    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>").


    Line 131, column 75: document type does not allow element "form" here; missing one of "object", "applet", "map", "iframe", "ins", "del" start-tag

    ...erca" method="post" action="find.php"><input type="text" name="testo" id="tes


    Line 135, column 127: document type does not allow element "form" here; missing one of "object", "applet", "map", "iframe", "ins", "del" start-tag

    ...www.google.it/search" target="_blank">

  2. #2
    Utente di HTML.it
    Registrato dal
    Sep 2001
    Messaggi
    21,188
    Un form, come pure del semplice testo, non puo` stare fuori da un <div> o un



    In XHTML Strict ci sono delle regole piu` ferree.
    Nuova politica di maggiore severita` sui titoli delle discussioni: (ri)leggete il regolamento
    No domande tecniche in messaggi privati

  3. #3
    Ma il form si trova dentro ad un

    , questo è il codice
    codice:
    <h5>CERCA</h5>
    <h6>cerca nel sito </h6>
    
    
    <form name="cerca" method="post" action="find.php"><input type="text" name="testo" id="testo" value="" size="14" title="Cerca nel sito" /> <input type="submit" name="cerca" id="cerca" value="Cerca" onclick="return controllo();" /></form></p>
    </div>

  4. #4
    Utente di HTML.it
    Registrato dal
    Sep 2001
    Messaggi
    21,188
    Prova a mettere il

    dentro un <div>
    Quell'errore sta a significare che c'e` qualche elemento che non sta a posto.
    Dovresti controllare attentamente la struttura della pagina.
    codice:
    <h5>CERCA</h5>
    <h6>cerca nel sito </h6>
    
    <div>
    
    
    <form name="cerca" method="post" action="find.php">
    <input type="text" name="testo" id="testo" value="" size="14" title="Cerca nel sito" /> 
    <input type="submit" name="cerca" id="cerca" value="Cerca" onclick="return controllo();" />
    </form></p>
    </div>
    Nuova politica di maggiore severita` sui titoli delle discussioni: (ri)leggete il regolamento
    No domande tecniche in messaggi privati

  5. #5
    Grazie mille funziona alla perfezione :quote:

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.