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

    Xhtml e css non convalidato!

    Non mi convalida il css ne' lXhtml ecco i seguenti errori:
    XHTML
    # Error Line 78 column 43: document type does not allow element "span" here; assuming missing "li" start-tag.

    ...n style="text-decoration: underline;"><span style="font-weight: bold;">



    # Error Line 81 column 4: end tag for "li" omitted, but OMITTAG NO was specified.
    [/list]

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

    Che fare?

    CSS:
    * Line : 2 (Level : 1) You have no color with your background-color : body
    * Line : 18 (Level : 1) You have no color with your background-color : #wrapper
    * Line : 31 (Level : 1) You have no color with your background-color : #nav
    * Line : 46 (Level : 1) You have no background-color with your color : #navlist a
    * Line : 46 (Level : 1) Same colors for color and background-color in two contexts #wrapper and #navlist a
    * Line : 51 (Level : 1) You have no background-color with your color : #navlist a:hover
    * Line : 69 (Level : 1) You have no background-color with your color : #col1content p
    * Line : 91 (Level : 1) You have no color with your background-color : .imageborder
    * Line : 95 (Level : 1) You have no background-color with your color : .subhead
    * Line : 101 (Level : 1) You have no background-color with your color : .sidebar
    * Line : 108 (Level : 1) You have no background-color with your color : h1
    * Line : 118 (Level : 1) You have no background-color with your color : h2
    * Line : 127 (Level : 1) You have no background-color with your color : h3
    * Line : 132 (Level : 1) You have no background-color with your color : #footer p
    * Line : 139 (Level : 1) You have no background-color with your color : a:link
    * Line : 143 (Level : 1) You have no background-color with your color : a:visited
    * Line : 147 (Level : 1) You have no background-color with your color : a:hover
    * Line : 150 (Level : 1) You have no background-color with your color : a:active

    NON CAPISCO:::

    VVoVe:

  2. #2

    Re: Xhtml e css non convalidato!

    Originariamente inviato da urciuoli
    Non mi convalida il css ne' lXhtml ecco i seguenti errori:
    XHTML
    # Error Line 78 column 43: document type does not allow element "span" here; assuming missing "li" start-tag.

    ...n style="text-decoration: underline;"><span style="font-weight: bold;">



    # Error Line 81 column 4: end tag for "li" omitted, but OMITTAG NO was specified.
    [/list]

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

    Che fare?

    CSS:
    * Line : 2 (Level : 1) You have no color with your background-color : body
    * Line : 18 (Level : 1) You have no color with your background-color : #wrapper
    * Line : 31 (Level : 1) You have no color with your background-color : #nav
    * Line : 46 (Level : 1) You have no background-color with your color : #navlist a
    * Line : 46 (Level : 1) Same colors for color and background-color in two contexts #wrapper and #navlist a
    * Line : 51 (Level : 1) You have no background-color with your color : #navlist a:hover
    * Line : 69 (Level : 1) You have no background-color with your color : #col1content p
    * Line : 91 (Level : 1) You have no color with your background-color : .imageborder
    * Line : 95 (Level : 1) You have no background-color with your color : .subhead
    * Line : 101 (Level : 1) You have no background-color with your color : .sidebar
    * Line : 108 (Level : 1) You have no background-color with your color : h1
    * Line : 118 (Level : 1) You have no background-color with your color : h2
    * Line : 127 (Level : 1) You have no background-color with your color : h3
    * Line : 132 (Level : 1) You have no background-color with your color : #footer p
    * Line : 139 (Level : 1) You have no background-color with your color : a:link
    * Line : 143 (Level : 1) You have no background-color with your color : a:visited
    * Line : 147 (Level : 1) You have no background-color with your color : a:hover
    * Line : 150 (Level : 1) You have no background-color with your color : a:active

    NON CAPISCO:::

    VVoVe:
    stai confondendo degli errori con dei warning, delle avvertenze

    quelli del CSS sono tutti dei warning quindi il CSS può essere considerato validato anche se non li correggi... nel markup invece ci sono degli errori: posta la pagina che li correggiamo

  3. #3
    Grazie Andre.
    ANche tu di Torino...potresti darmi delle lezioni ...
    Ecco Xhtml:
    <!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">
    <head>

    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <title>Media Sport</title>


    <link href="design2.css" rel="stylesheet" type="text/css" />

    </head>


    <body style="color: rgb(0, 0, 0); background-color: rgb(0, 51, 51);" alink="#000099" link="#000099" vlink="#990099">

    <div id="wrapper">
    <div style="text-align: center;" id="logo"><span style="font-weight: bold;"></span>[img]header.png[/img]</div>

    <div id="mainphoto">




    </div>
    <div id="nav"><span style="text-decoration: underline;"><span style="font-weight: bold;">

    </span></span> </div>

    <div id="shadow">








    </div>

    <div id="col1">
    <div id="col1content"><span style="font-weight: bold;"></span>








    <span style="font-weight: bold;">



    </span>


    </p>

    </div>

    </div>

    <div id="col2">
    <div id="col2content">





    </p>






























    </div>

    </div>

    <div id="footer">





    </p>

    </div>

    </div>

    </body>
    </html>
    Grazie

  4. #4
    Ma che senso ha usare i CSS esterni per poi sporcare comunque l'HTML con gli attributi di stile? Proviamo a ripulirlo un po' e a riassumerlo ai fini del forum (hai aggiunto molte porzioni inutili che distolgono l'attenzione a chi deve aiutarti):
    codice:
    <!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" lang="it" xml:lang="it"> 
    
    <head> 
       <title>Media Sport</title>
       <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> 
       <link href="design2.css" rel="stylesheet" type="text/css" /> 
    </head> 
    
    <body> 
       <div id="wrapper"> 
          <div>
             <span></span>
             [img]header.png[/img]
          </div> 
          <div id="mainphoto"></div> 
          <div id="nav">
             <span>
                <span></span>
             </span>
          </div> 
          <div id="shadow"></div> 
          <div id="col1"> 
             <div id="col1content">
                <span></span>
                <span></span> 
                
    
    </p>
             </div> 
          </div> 
          <div id="col2">
             <div id="col2content">
                
    
    </p>
             </div>
          </div> 
          <div id="footer">
             
    
    </p>
          </div> 
       </div> 
    </body></html>
    Adesso dovrebbe essere validato. Ti faccio notare come tu abbia semplicemente dimenticato di inserire le informazioni inerenti la lingua del documento, attributi che ho evidenziato nel codice.

    Sintetizzare e scrivere in maniera ordinata il codice aiuta in primo luogo ad analizzare in modo più approfondito il proprio lavoro e poi permette un'autocritica prima di venire a postare sul forum: sono convinto che se tutti si concentrassero di più su questo punto molti scoverebbero l'errore da sè.

    E sarebbe tutto di guadagnato, ovviamente.

  5. #5
    E' valido pero' mentre prima potevo scrivere il testo e la pagina scorreva giu' ora non questo non accade.
    Help!

  6. #6
    Non ho capito cosa intendi. E' logico che, comunque, tu debba portare tutti gli attributi di stile - che io ho tolto dal markup - nel foglio di stile esterno design2.css.

  7. #7
    si ho detto una cavolata,scusami

  8. #8

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.