Visualizzazione dei risultati da 1 a 7 su 7
  1. #1
    Utente di HTML.it
    Registrato dal
    Dec 2004
    Messaggi
    118

    Validazione html W3C: topmargin, bottommargin, td background...

    Salve cari, forse sarò un po' antiquata io ad usare determinati tag ma...per unire la tabella all'apice della schermata ho sempre usato l'attributo su body topmargin = "0", per dare una immagine di sfondo a una tabella ho sempre usato table background= ... ed anche usato l'attributo height al tag table.
    Non capisco perchè in fase di validazione html questi passaggi me li considera errori.

    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


    ...eppure in fase di progettazione, lo stesso dreamweaver mi fornisce questi tags sottoforma di suggest. Mi aiutate per favore?
    Sono graditi anche suggerimenti tramite codice per sopperire a questo inconveniente, grazie!

  2. #2
    Utente di HTML.it L'avatar di mexican
    Registrato dal
    Oct 2001
    residenza
    cava de tirreni
    Messaggi
    3,541

    Re: Validazione html W3C: topmargin, bottommargin, td background...

    Originariamente inviato da MIRIANA
    Salve cari, forse sarò un po' antiquata io ad usare determinati tag ma...per unire la tabella all'apice della schermata ho sempre usato l'attributo su body topmargin = "0", per dare una immagine di sfondo a una tabella ho sempre usato table background= ... ed anche usato l'attributo height al tag table.
    Non capisco perchè in fase di validazione html questi passaggi me li considera errori.

    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


    ...eppure in fase di progettazione, lo stesso dreamweaver mi fornisce questi tags sottoforma di suggest. Mi aiutate per favore?
    Sono graditi anche suggerimenti tramite codice per sopperire a questo inconveniente, grazie!
    fai tutto con i css.

  3. #3

    Re: Validazione html W3C: topmargin, bottommargin, td background...

    Ragazzi, ho lo stesso problema di MIRIANA:
    errore di validazione: Line 20, Column 60: there is no attribute "BACKGROUND"
    la colonna in questione (nel sito) è:<td width="30" height="10" background="/marg_up_left.png"> </td>
    l'errore segnato da Markup Validation è qui: background= " http://...
    in apertura pagina ho questo:<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">


    Originariamente inviato da MIRIANA
    Salve cari, forse sarò un po' antiquata io ad usare determinati tag ma...non capisco perchè in fase di validazione html questi passaggi me li considera errori.
    [COLOR=orangered]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 Mi aiutate per favore?
    Sono graditi anche suggerimenti tramite codice per sopperire a questo inconveniente, grazie!

  4. #4
    Mi sembra chiaro:

    Line 20, Column 60: there is no attribute "BACKGROUND"


    Vuol dire che non pui dichiarare li l'attributo background, lo devi fare da un'altra parte per esempio seguendo il consiglio di mexican, utilizzando i fogli di stile

  5. #5

    Re: Re: Validazione html W3C: topmargin, bottommargin, td background...

    Dovrei ricominciare tutto di nuovo eppure gli altri background funzionano!

  6. #6
    il fatto che funzionano non significa che rientrino nelle specifiche del w3c, non credi ?

  7. #7
    Originariamente inviato da alexba64
    il fatto che funzionano non significa che rientrino nelle specifiche del w3c, non credi ?
    è vero, grazie poverò ad imparare i fogli di stile

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.