Ver Mensaje Individual
  #1 (permalink)  
Antiguo 17/10/2009, 17:24
alvarols
 
Fecha de Ingreso: diciembre-2008
Mensajes: 738
Antigüedad: 15 años, 4 meses
Puntos: 15
Como hacer que la W3C me valide este código, no lo puedo modificar por el JQuery

La W3C me marca este error

# Error Line 56, Column 111: Attribute "rel" exists, but can not be used for this element.

…th="580" height="360" title="" rel=" <h3>Destaca de los demás</h3><p>Servici



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.


El problema es que para que mi librería funcione así como aparece en mi página (en las imágenes con texto que cambian) http://www.alvarols.com, necesito poner las cadenas para el texto <h3> y <p> dentro de rel"", de lo contrario el contenido no aparece con el formato que yo quiero.

Este es el código

Código HTML:
 <a href="#" class="show">
		    <img src="images/grass-blades.jpg" alt="Haz crecer a tu negocio" width="580" height="360" title=""  rel=" <h3>Destaca de los demás</h3><p>Servicios Integrales de           Mercadotecnia, Desarrollo Web, y Musicalización; para que tu negocio sea competitivo.</p> "/> </a>