Visualizzazione dei risultati da 1 a 5 su 5
  1. #1
    Utente di HTML.it
    Registrato dal
    Jun 2003
    Messaggi
    4,826

    validazione xhtml strict

    ho il seguente codice:
    <head>
    <meta http-equiv="content-type" content="text/html; charset=utf-8" />



    <style type="text/css">
    @import url("emptystyle.css");
    a#viewcss{color: #00f;font-weight: bold}
    </style>


    <script type="text/javascript">
    function avanti(val) {
    document.form1.azione.value="avanti";
    document.form1.submit();

    }
    function indietro(val) {

    document.form1.azione.value="indietro";
    document.form1.submit();

    }
    function collegamento(valore) {

    document.form1.frame.value=0;
    document.form1.galleria.value=valore;
    document.form1.submit();

    }
    function popup(valore,width,height)
    {

    document.form1.galleriadett.value=valore;
    window.open('Dettaglio.php?galleriadett='+valore,' ','width ='+width+',height='+height+',left=1,top=1 scrollbars=0');
    //this.form1.action="Dettaglio.php";

    //this.form1.target="_blank";
    //this.form1.submit();


    }
    </script>
    </head>


    l'errore di validazione del w3c è:
    Line 50, column 7: end tag for "head" which is not finished

    </head>

    Most likely, You nested tags and closed them in the wrong order. For example

    [i]...</p> is not acceptable, as [i] must be closed before

    . Acceptable nesting is:

    ...</p>

    Another possibility is that you used an element (e.g. 'ul') which requires a child element (e.g. 'li') that you did not include. Hence the parent element is "not finished", not complete.

    non capisco cosa c'è da cambiare!! premetto che ho cercato ma nisba.
    mi aiutate?
    grazie ciao

  2. #2
    Primissima cosa: metti il javascript in un file esterno.

    Oltre a poter interferire con il codice html (magari talvolta occorre usare un segno di maggiore o minore), è buona norma tenere separati i tre elementi fondamentali di ogni documento web, ovvero struttura (xhtml), presentazione (css) e comportamento (javascript, o meglio, EcmaScript che è la versione "standard").

    Poi prova a rivalidare e facci sapere.

  3. #3
    Utente di HTML.it
    Registrato dal
    Jun 2003
    Messaggi
    4,826
    questo continua a non andare!!!non ci salto fuori!

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" lang="it" xml:lang="it">


    <head>
    <meta http-equiv="content-type" content="text/html; charset=utf-8" />

    <?php

    if(!empty($HTTP_GET_VARS["galleria"]))
    $HTTP_SESSION_VARS["Galleria"]=$HTTP_GET_VARS["galleria"];
    include("header.php");

    ?>


    <style type="text/css">
    @import url("emptystyle.css");
    a#viewcss{color: #00f;font-weight: bold}
    </style>
    <script type="text/javascript" src="func.js"></script>
    </head>

    sempre stesso errore di prima , premetto che il codice successivo non contiene altri <head> o </head>,ma è troppo lungo
    grazie ancora

  4. #4
    Utente di HTML.it
    Registrato dal
    Jun 2003
    Messaggi
    4,826
    up!

  5. #5
    Utente di HTML.it
    Registrato dal
    Jun 2003
    Messaggi
    4,826
    nessuno lo sa?

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.