Joomla.it Forum

Non solo Joomla... => Sviluppo => : danko55 07 Oct 2011, 23:26:41

: errore Validazione W3C
: danko55 07 Oct 2011, 23:26:41
Salve, dopo aver inserito il modulo "Lof Article Scroller Module"  il validatore W3C html mi riporta questi due errori che non riesco a risolvere, per questo vi chiedo se qualcuno sa come e possibile risolverli



Line 272 (http://validator.w3.org/check#line-272), Column 156: required attribute "alt" not specified
a-madagascar-1_prpr8.t560.jpg" title="Madagascar 2011: this could be heaven" />
 
  The attribute given above is required for an element that you've used, but you have omitted it. For instance, in most HTML and XHTML document types the "type" attribute is required on the "script" element and the "alt" attribute is required for the "img" element.
 Typical values for type are type="text/css" for <style> and type="text/javascript" for <script>.
   
  Line 291 (http://validator.w3.org/check#line-291), Column 152: required attribute "alt" not specified
viaggi_gallerybignew_wm_w1_o50_gs0_r0_p 330x0.jpg" title="Tour Nuova Zelanda" />
 
  The attribute given above is required for an element that you've used, but you have omitted it. For instance, in most HTML and XHTML document types the "type" attribute is required on the "script" element and the "alt" attribute is required for the "img" element.
 Typical values for type are type="text/css" for <style> and type="text/javascript" for <script>


il codice del modulo che produce gli errori dovrebbe essere questo:


img src="<?php echo $row->thumbnail; ?>" title="<?php echo $row->title?>" />
: Re:errore Validazione W3C
: danko55 07 Oct 2011, 23:51:19
corretto mancava l'attributo alt (alt="testo")  ;)