Visualizzazione dei risultati da 1 a 3 su 3

Discussione: w3c, mi date una mano?

  1. #1

    w3c, mi date una mano?

    la discussione era nata perchè ho annunciato il mio sito e mi è stato riportato che c'erano degli errori sugli standard...ora io con l'inglese fatico molto, sto cominciando a studiarmi gli standard...se qualcuno mi da una manina, apprezzo molto

    iniziando:


    quote:
    --------------------------------------------------------------------------------
    Below are the results of attempting to parse this document with an SGML parser.
    Error Line 43 column 52: there is no attribute "HEIGHT".

    <table width="748" border="0" align="center" height="422" cellpadding="0" cellspacing="0">

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



    qual'è qui per esempio il problema: l'attributo "height" non supportato o espresso male? come validarlo in questo specifico caso?
    riesco a fatica a leggere l'inglese, ma poi per alcune parole che non conosco mi sfugge il senso delle frasi

    grazie ancora a chi mi darà una mano
    poi magari capito questo riesco a correggere tanti altri errori simili...

  2. #2
    Utente di HTML.it
    Registrato dal
    Feb 2005
    Messaggi
    2,245
    Devi scrivere <table width="748" border="0" align="center">

  3. #3
    Utente di HTML.it L'avatar di floyd46
    Registrato dal
    Feb 2002
    residenza
    Apulia
    Messaggi
    2,641
    ciao,
    sarebbe meglio se scrivessi il codice CSS ed XHTML senza scomodare i maledetti tag <table>....</table> se li usi x impaginare il layout del sito.

    Non servono e non devono essere usati x tale scopo. Scusa se mi sono intromesso; il problema non è correggere gli errori di validazione che ti vegono dal sito del W3C ma, al contrario, correggere alla base una impostazione mentale errata (non solo la tua per carità, nulla di personale) che si usano ancora le tabelle per fare siti web.

    Sforziamoci di lasciarci alle spalle codice sporco e pesante ed intraprendere la via del codice standard.

    Nel sito di html.it hai una infinità di esempi al riguardo.

    saluti

    Floyd
    "Le persone che realizzano layout con tabelle annidate, spacer gif o che ignorano l'accessibilità non possono più definirsi professionisti." Andy Clarke
    --------------------------------

    www.extrowebsite.com

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.