Un Evento Unico. 5 Sale. 27 Interventi. SEO, SOCIAL, E-Commerce, Mobile, Turismo.
CLICCA QUI e SCOPRI DI PIù X Chiudi
 
Forum GT: Condividiamo idee e conoscenza Forum GT: Condividiamo idee e conoscenza


Condividi questo contenuto nei Social Network:
Ti stiamo aspettando: Registrati subito e gratis. Entra a far parte di una delle comunità più attive in Italia. Se hai dimenticato i tuoi dati li puoi recuperare subito.


Vai indietro   Forum per Webmaster: Condividiamo Idee e Conoscenza > Sviluppo e Gestione siti web > HTML e XHTML
Benvenuto! Forum Regole FAQ Lista utenti Calendario Segna come letti

HTML e XHTML Il codice di scrittura per pagine web

Hey Amico Visitatore,
Condividi con noi le tue idee e la tua conoscenza Aprendo una nuova discussione nella sezione HTML e XHTML


Rispondi
 
LinkBack Strumenti di discussione
Vecchio 31-07-10, 13:23   #1 (permalink)
User
 
L'avatar di manzy
 
Data di registrazione: Jul 2009
Messaggi: 70
Errori nella validazione del codice html...

Ho eseguito la validazione del codice del mio sito, ma ci sono errori che proprio non so come correggere, ad esempio questo:

end tag for X omitted, but OMITTAG NO was specified You may have neglected to close an element, or perhaps you meant to "self-close" an element, that is, ending it with "/>" instead of ">".

* Line 385, column 181: end tag for "img" omitted, but OMITTAG NO was specified …llo.com/wp-content/plugins/fbconnect/images/maxim.gif" alt="pinnedChange!"></a>



oppure questo:

an attribute value specification must be an attribute value literal unless SHORTTAG YES is specified

* Line 214, column 12: an attribute value specification must be an attribute value literal unless SHORTTAG YES is specified <h3 class=cat_title><a href="manzinello.com/index.php/category/desi…



Proprio non capisco dove dovrei andare a modificare il codice, qualcuno sa per caso come sistemarlo? Grazie mille!
__________________
www.ontheblog.it
manzy non in linea   Rispondi citando
Vecchio 31-07-10, 15:56   #2 (permalink)
ModSenior
 
L'avatar di marcocarrieri
 
Data di registrazione: Jul 2009
Ubicazione: Rovigo
Messaggi: 14,723
Invia un messaggio tramite MSN a marcocarrieri Invia un messaggio tramite Skype a marcocarrieri
Immaginando che il sito in riferimento sia quello in presentaci un sito ho dato un occhiata.

Alcuni di quest sono dati dal fatto che all'interno dei collegamenti <a></a> Tu vai a mettere dei paragrafi, e non puoi farlo.

Tu ora ad esempio fai cosi.
<a><p>testo</p></a>.

Prova cosi.
<p><a>Testo</a></p>.

Gia dovresti risolvere qualche errore... Poi magari andiamo per grado.

Siamo quindi a 55 errori se non sbaglio.
marcocarrieri ora è in linea   Rispondi citando
Vecchio 31-07-10, 20:44   #3 (permalink)
User
 
L'avatar di manzy
 
Data di registrazione: Jul 2009
Messaggi: 70
Sì, purtroppo 55 errori ancora... Riguardo al problema è esattamente quello che inizialmente ho pensato io! Ho cercato la riga in questione e ho trovato questo:

<div id="cat-<?php echo $i; ?>" class="category">
<?php query_posts("showposts=1&cat=$category")?>
<span class="cat_title"><a href="<?php echo get_category_link($category);?>"><?php single_cat_title(); ?></a></span>
<a href="<?php echo get_category_link($category);?>"><?php echo category_description($category); ?></a>
</div>

Questo è il problema che spiegavo nella presentazione del sito... Non c'è alcuna <p>! Quei due invece sono altri due tipi che mi si sono presentati... I 55 c'è di buono che sono di pochi tipi, se risolvo una cosa del genere 5 se ne vanno perchè sono 5 le categorie che metto con la descrizione...
__________________
www.ontheblog.it

Ultima modifica di manzy : 31-07-10 21:15.
manzy non in linea   Rispondi citando
Vecchio 31-07-10, 21:39   #4 (permalink)
ModSenior
 
L'avatar di marcocarrieri
 
Data di registrazione: Jul 2009
Ubicazione: Rovigo
Messaggi: 14,723
Invia un messaggio tramite MSN a marcocarrieri Invia un messaggio tramite Skype a marcocarrieri
A mannaggia... Wordpress vero?
marcocarrieri ora è in linea   Rispondi citando
Vecchio 31-07-10, 21:40   #5 (permalink)
User
 
L'avatar di manzy
 
Data di registrazione: Jul 2009
Messaggi: 70
Yes! Che posso fare? Non capisco proprio perchè si inventi quel <p> inesistente...
manzy non in linea   Rispondi citando
Vecchio 31-07-10, 21:44   #6 (permalink)
ModSenior
 
L'avatar di marcocarrieri
 
Data di registrazione: Jul 2009
Ubicazione: Rovigo
Messaggi: 14,723
Invia un messaggio tramite MSN a marcocarrieri Invia un messaggio tramite Skype a marcocarrieri
Butto li una cosa che magari è più una pezza eh eh...
E se fai un replace della stringa?
Prima un replace di un <p> e dopo di un </p>.
Il problema nasce se c'è un <p ....></p>.
marcocarrieri ora è in linea   Rispondi citando
Vecchio 31-07-10, 22:34   #7 (permalink)
User
 
L'avatar di manzy
 
Data di registrazione: Jul 2009
Messaggi: 70
In che senso replace? Ci metto io un <p> e un </p>?
manzy non in linea   Rispondi citando
Vecchio 31-07-10, 23:08   #8 (permalink)
ModSenior
 
L'avatar di marcocarrieri
 
Data di registrazione: Jul 2009
Ubicazione: Rovigo
Messaggi: 14,723
Invia un messaggio tramite MSN a marcocarrieri Invia un messaggio tramite Skype a marcocarrieri
No fare una cosa del genere.
Invece di stampare direttamente

Codice PHP:
<a href="<?php echo get_category_link($category);?>"><?php echo category_description($category); ?></a>
Fare cosi.

Codice PHP:
<a href="<?php echo get_category_link($category);?>">
<?php
$variabile
=category_description($category); 
$variabile=str_replace("<p>","",$variabile);
$variabile=str_replace("</p>","",$variabile);
echo 
$variabile;
?>
</a>
marcocarrieri ora è in linea   Rispondi citando
Vecchio 01-08-10, 00:27   #9 (permalink)
User
 
L'avatar di manzy
 
Data di registrazione: Jul 2009
Messaggi: 70
E' successa una cosa che ha dell'incredibile... Le descrizioni sono raddoppiate... Sono una sotto l'altra...

EDIT: funzionaaaaaaaaaaaaa! Avevo sbagliato io una cosa nel sostituire il codice, ora vedo se l'errore se n'è andato...

EDIT2: se n'è andato anche l'errore! Grandissimo! Grazie! -50

Ultima modifica di manzy : 01-08-10 00:31.
manzy non in linea   Rispondi citando
Vecchio 01-08-10, 00:39   #10 (permalink)
User
 
L'avatar di manzy
 
Data di registrazione: Jul 2009
Messaggi: 70
Un altro che proprio non capisco è il secondo che ho scritto nel post iniziale... Mi sottolinea la c di cat_title... Non capisco cosa devo fare in effetti, comunque sei stato gentilissimo fin'ora nel caso tu ora debba aiutare qualcun'altro! Grazie mille!
manzy non in linea   Rispondi citando
Vecchio 01-08-10, 10:40   #11 (permalink)
ModSenior
 
L'avatar di marcocarrieri
 
Data di registrazione: Jul 2009
Ubicazione: Rovigo
Messaggi: 14,723
Invia un messaggio tramite MSN a marcocarrieri Invia un messaggio tramite Skype a marcocarrieri
Forse perchè è scritto senza le virgolette?

class="cat_title"
marcocarrieri ora è in linea   Rispondi citando
Vecchio 01-08-10, 12:53   #12 (permalink)
User
 
L'avatar di manzy
 
Data di registrazione: Jul 2009
Messaggi: 70
Perfetto! Risolto anche questo! Alcuni sono riuscito a risolverli da solo ed ora ne rimangono 28... Raggruppati in 3 gruppi. I tre gruppi sono questi:

end tag for X which is not finished

Most likely, you nested tags and closed them in the wrong order. For example <p><em>...</p> is not acceptable, as <em> must be closed before <p>. Acceptable nesting is: <p><em>...</em></p>

Another possibility is that you used an element which requires a child element that you did not include. Hence the parent element is "not finished", not complete. For instance, in HTML the <head> element must contain a <title> child element, lists require appropriate list items (<ul> and <ol> require <li>; <dl> requires <dt> and <dd>), and so on.

* Line 411, column 319: end tag for "ul" which is not finished

… <ul class="tabNavigation_feed"></ul></div></div><div id="fbAllComments" cla…


--------------------------------

element X undefined

You have used the element named above in your document, but the document type you are using does not define an element of that name. 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 "Frameset" document type to get the "<frameset>" element),
* by using vendor proprietary extensions such as "<spacer>" or "<marquee>" (this is usually fixed by using CSS to achieve the desired effect instead).
* by using upper-case tags in XHTML (in XHTML attributes and elements must be all lower-case).

* Line 393, column 494: element "fb:login-button" undefined

…medium" length="long" onlogin="javascript:login_facebook()" ></fb:login-button>


--------------------------------

there is no attribute X

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.

* Line 393, column 433: there is no attribute "size"

…</strong>:<br/><fb:login-button size="medium" length="long" onlogin="javascri…


Che proprio non riesco a capire, gli altri mi sono un po' arrangiato, non sono un grande esperto in effetti...
manzy non in linea   Rispondi citando
Vecchio 01-08-10, 12:54   #13 (permalink)
User
 
L'avatar di manzy
 
Data di registrazione: Jul 2009
Messaggi: 70
Perfetto! Risolto anche questo! Alcuni sono riuscito a risolverli da solo ed ora ne rimangono 28... Raggruppati in 3 gruppi. I tre gruppi sono questi:

end tag for X which is not finished

Most likely, you nested tags and closed them in the wrong order. For example <p><em>...</p> is not acceptable, as <em> must be closed before <p>. Acceptable nesting is: <p><em>...</em></p>

Another possibility is that you used an element which requires a child element that you did not include. Hence the parent element is "not finished", not complete. For instance, in HTML the <head> element must contain a <title> child element, lists require appropriate list items (<ul> and <ol> require <li>; <dl> requires <dt> and <dd>), and so on.

* Line 411, column 319: end tag for "ul" which is not finished

… <ul class="tabNavigation_feed"></ul></div></div><div id="fbAllComments" cla…


--------------------------------

element X undefined

You have used the element named above in your document, but the document type you are using does not define an element of that name. 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 "Frameset" document type to get the "<frameset>" element),
* by using vendor proprietary extensions such as "<spacer>" or "<marquee>" (this is usually fixed by using CSS to achieve the desired effect instead).
* by using upper-case tags in XHTML (in XHTML attributes and elements must be all lower-case).

* Line 393, column 494: element "fb:login-button" undefined

…medium" length="long" onlogin="javascript:login_facebook()" ></fb:login-button>


--------------------------------

there is no attribute X

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.

* Line 393, column 433: there is no attribute "size"

…</strong>:<br/><fb:login-button size="medium" length="long" onlogin="javascri…


Che proprio non riesco a capire, gli altri mi sono un po' arrangiato, non sono un grande esperto in effetti...
manzy non in linea   Rispondi citando
Vecchio 01-08-10, 12:56   #14 (permalink)
ModSenior
 
L'avatar di marcocarrieri
 
Data di registrazione: Jul 2009
Ubicazione: Rovigo
Messaggi: 14,723
Invia un messaggio tramite MSN a marcocarrieri Invia un messaggio tramite Skype a marcocarrieri
28?
A me ne segna 50.
Per quale standard lo stai validando?
marcocarrieri ora è in linea   Rispondi citando
Vecchio 01-08-10, 12:59   #15 (permalink)
User
 
L'avatar di manzy
 
Data di registrazione: Jul 2009
Messaggi: 70
°_° Anche a me ne segna 50! Poi ho ricaricato la pagina e diventano 28... E' possibile? Se rimani nella pagina di 50 infatti appaiono errori che ho già risolto, come lo stesso cat_title...
manzy non in linea   Rispondi citando
Rispondi


Strumenti di discussione

Regole di scrittura
Non puoi postare nuove discussioni
Non puoi rispondere alle discussioni
Non puoi allegare file
Non puoi editare i tuoi post

BB code is Attivo
smilies è Attivo
[IMG] il codice è Attivo
Il codice HTML è Disattivato
Trackbacks are Attivo
Pingbacks are Attivo
Refbacks are Disattivato
Vai al forum



Tutti gli orari sono GMT +3. Attualmente sono le 07:20.




Forum GT - © 2004-2009 GT idea S.r.l P.iva 02418200800 - Privacy/Disclaimer

SEO by vBSEO 3.2.0 ©2008, Crawlability, Inc.