Pagina 1 di 2 1 2 ultimoultimo
Visualizzazione dei risultati da 1 a 10 su 11
  1. #1
    Utente di HTML.it
    Registrato dal
    Sep 2010
    Messaggi
    77

    incongruenza tag meta da guida html e standard w3c

    Ciao a tutti, ho fatto validare il mio sito dal w3c, per migliorare il posizionamento all'interno dei motori di ricerca, ma mi risultano degli errori anche se ho copiato i tag da http://xhtml.html.it/guide/lezione/1710/i-meta-tag/.
    Gli errori sono i seguenti e sono solo alcuni...
    Qualcuno sa dirmi se devo o no chiudere i tag meta?
    Li ho inseri nell'ordine come da guida html subito dopo il tag <head>
    Grazie!!!!!!!!!!!!!!!!

    # Line 4, Column 93: end tag for "meta" omitted, but OMITTAG NO was specified

    …scription" content="Giornale on line della provincia di Cuneo e del Piemonte">

    You may have neglected to close an element, or perhaps you meant to "self-close" an element, that is, ending it with "/>" instead of ">".
    # Info Line 4, Column 1: start tag was here

    <meta name="description" content="Giornale on line della provincia di Cuneo e d…

    # Error Line 5, Column 219: end tag for "meta" omitted, but OMITTAG NO was specified

    …, notizie alba piemonte, notizie savigliano,cucina tradizionale, cronaca alba">

    You may have neglected to close an element, or perhaps you meant to "self-close" an element, that is, ending it with "/>" instead of ">".
    # Info Line 5, Column 1: start tag was here

    <meta name="keywords" content="idea, web, tv, Cuneo provincia, Cuneo cronaca, n…

    # Error Line 6, Column 7: document type does not allow element "title" here

    <title>IdeaWebTv</title>

    The element named above was found in a context where it is not allowed. This could mean that you have incorrectly nested elements -- such as a "style" element in the "body" section instead of inside "head" -- or two elements that overlap (which is not allowed).

    One common cause for this error is the use of XHTML syntax in HTML documents. Due to HTML's rules of implicitly closed elements, this error can create cascading effects. For instance, using XHTML's "self-closing" tags for "meta" and "link" in the "head" section of a HTML document may cause the parser to infer the end of the "head" section and the beginning of the "body" section (where "link" and "meta" are not allowed; hence the reported error).
    # Error Line 7, Column 13: there is no attribute "NAME"

    <META NAME =robots CONTENT="all">


    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. If you received this error when using the <embed> element to incorporate flash media in a Web page, see the FAQ item on valid flash.
    # Error Line 7, Column 13: an attribute value specification must be an attribute value literal unless SHORTTAG YES is specified

    <META NAME =robots CONTENT="all">

    # Error Line 7, Column 28: there is no attribute "CONTENT"

    <META NAME =robots CONTENT="all">

  2. #2
    Ciao La Roby,
    potresti postare il link alla pagina cotenente il codice?

  3. #3
    Moderatrice di Grafica, Cerco e offro lavoro L'avatar di Myaku
    Registrato dal
    Nov 2006
    Messaggi
    10,349
    se stai utilizzando una dtd xhtml, i meta vanno chiusi. al contrario, se è html li lasci aperti.
    inoltre, con xhtml tag ed attributi vanno scritti sempre in minuscolo.


  4. #4
    Utente di HTML.it
    Registrato dal
    Sep 2010
    Messaggi
    77
    Grazie mille, scusate ma pensavo fosse più una discussione sul marketing trattandosi di meta.
    Il file è html infatti ho lasciato i tag aperti e non capisco perchè mi dia tutti questi errori e proprio sui meta...
    Per swalke il link alla padina è digitalhandworks.it

  5. #5
    Moderatrice di Grafica, Cerco e offro lavoro L'avatar di Myaku
    Registrato dal
    Nov 2006
    Messaggi
    10,349
    Originariamente inviato da La roby
    Il file è html infatti ho lasciato i tag aperti e non capisco perchè mi dia tutti questi errori e proprio sui meta...
    la pagina è servita con una dtd xhtml

    codice:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 STRICT//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-STRICT.dtd">
    quindi, i meta vanno chiusi e tag ed attributi scritti in minuscolo


  6. #6
    Utente di HTML.it
    Registrato dal
    Sep 2010
    Messaggi
    77
    grazie mille!!!!!
    quindi sarebbe <TITLE> <TITLE/>
    <META NAME="description" CONTENENT="giornale...
    Grazie!
    Non avevo proprio capito quando chiudere o no gli attributi!!!!

  7. #7
    Moderatrice di Grafica, Cerco e offro lavoro L'avatar di Myaku
    Registrato dal
    Nov 2006
    Messaggi
    10,349
    Originariamente inviato da La roby
    grazie mille!!!!!
    quindi sarebbe <TITLE> <TITLE/>
    <META NAME="description" CONTENENT="giornale...
    Grazie!
    Non avevo proprio capito quando chiudere o no gli attributi!!!!
    no. sarebbe
    codice:
    <title>quello che ti pare</title>
    <meta name="description" content="quello che ti pare" />
    i tag sono quelli che si chiudono

  8. #8
    Utente di HTML.it
    Registrato dal
    Sep 2010
    Messaggi
    77
    grazie

  9. #9
    ...in oltre i tag in xhtml dovrebbero essere scritti in minuscolo.

  10. #10
    Moderatrice di Grafica, Cerco e offro lavoro L'avatar di Myaku
    Registrato dal
    Nov 2006
    Messaggi
    10,349
    Originariamente inviato da Swalke
    ...in oltre i tag in xhtml dovrebbero essere scritti in minuscolo.


    Originariamente inviato da Myaku
    inoltre, con xhtml tag ed attributi vanno scritti sempre in minuscolo.
    Originariamente inviato da Myaku
    e tag ed attributi scritti in minuscolo

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.