Foros del Web » Creando para Internet » HTML »

error en validacion: there is no attribute "caption"

Estas en el tema de error en validacion: there is no attribute "caption" en el foro de HTML en Foros del Web. hola estoy validando mi pagina web pero tengo el siguiente problema: estoy usando estilos y js. que no estan en mi mismo documento y al ...
  #1 (permalink)  
Antiguo 31/07/2011, 18:19
 
Fecha de Ingreso: octubre-2010
Mensajes: 17
Antigüedad: 13 años, 6 meses
Puntos: 0
error en validacion: there is no attribute "caption"

hola estoy validando mi pagina web pero tengo el siguiente problema:
estoy usando estilos y js. que no estan en mi mismo documento y al momento de validar mi pagina me muestra ese error: there is no attribute "caption"

aqui mi codigo
Código HTML:
Ver original
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
  4. <title>Joseph Casta&ntilde;o: Dise&ntilde;ador web freelance</title>
  5.  
  6. <link href="css/style.css" rel="stylesheet" type="text/css" />
  7. <link href="css/960.css" rel="stylesheet" type="text/css" />
  8. <link href="css/reset.css" rel="stylesheet" type="text/css" />
  9. <link href="css/text.css" rel="stylesheet" type="text/css" />
  10. <link rel="stylesheet" media="all" type="text/css" href="js/stu12/stu12.css" />
  11. <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js"></script>
  12. <script type="text/javascript" src="js/stu12/stu12.js"></script>
  13. </head>
  14.  
  15. <body id="body">
  16.  
  17. <div id="nube_logo" class="container_12">
  18.   <div class="grid_1 suffix_11">
  19.     <img src="images/nube.png" alt=""/>
  20.     </div>
  21. </div>
  22.  
  23. <div id="header" class="container_12">
  24.     <div id="logo" class="grid_4 suffix_8">
  25.     <img src="images/logo.png" alt=""/>
  26.     </div>
  27. </div>
  28.    
  29. <div id="menu" class="container_12">
  30.     <div class="grid_12">
  31.     INICIO \ PORTFOLIO \ QUIEN SOY \ CONTACTEME
  32.     </div>
  33. </div>
  34.  
  35. <div id="logo_arbol_nube" class="container_12">
  36.     <div class="grid_2">
  37.     <img src="images/logo_arbol.png" alt="" width="423" height="136" />
  38.     </div>
  39. </div>
  40. <div id="contenido" class="container_12">
  41.     <div class="grid_11 suffix_1">
  42.     <ul class="iStu12">
  43.     <li class="prev"></li>
  44.         <li class="images">
  45.             <div class="slide">
  46.                     <div class="slidePanel panel1" caption="Banksy">
  47.                         <div class="innerPanel">
  48.                             <img src="js/stu12/banksy.jpg" alt="Stencil on the waterline of The Thekla" />
  49.                           <h1>Banksy</h1>
  50.                             <br />
  51.                             <p>A slideshow of Graffiti &amp; Quotes</p>
  52.                             <h2>Stencil on the waterline of The Thekla</h2>
  53.                             <p>Banksy is the pseudonym of a British graffiti artist, political activist and painter, whose identity is unconfirmed.</p>
  54.                             <p>His satirical street art and subversive epigrams combine irreverent dark humour with graffiti done in a distinctive stencilling technique.</p>
  55.                             <p>Such artistic works of political and social commentary have been featured on streets, walls, and bridges of cities throughout the world.</p>
  56.                             <p>Source <a href="http://en.wikipedia.org/wiki/Banksy">Wikipedia</a></p>
  57.                         </div>
  58.                     </div>
  59.                     <div class="slidePanel panel2" caption="Quote #1">
  60.                         <div class="innerPanel">
  61.                             <blockquote>"Once upon a time there was a bear and a bee who lived in a wood and were the best of friends. All summer long the bee collected nectar from morning to night while the bear lay on his back basking in the long grass.<br />When winter came the bear realised he had nothing to eat and thought to himself 'I hope that busy little bee will share some of his honey with me.' But the bee was nowhere to be found - he had died of a stress induced coronary disease."</blockquote>
  62.                             <p>- Banksy (Wall and Piece)</p>
  63.                         </div>
  64.                     </div>
  65.                     <div class="slidePanel panel3" caption="Image #1">
  66.                         <div class="innerPanel">
  67.                             <img src="js/stu12/banksy-graffiti-removal.jpg" alt="Banksy - Graffiti removal" />
  68.                             <p>Banksy - Graffiti Removal</p>
  69.                         </div>
  70.                     </div>
  71.                     <div class="slidePanel panel4" caption="Quote #2">
  72.                         <div class="innerPanel">
  73.                             <blockquote>"The thing I hate the most about advertising is that it attracts all the bright, creative and ambitious young people, leaving us mainly with the slow and self-obsessed to become our artists.<br />Modern art is a disaster area. Never in the field of human history has so much been used by so many to say so little."</blockquote>
  74.                             <p> - Banksy</p>
  75.                         </div>
  76.                     </div>
  77.                     <div class="slidePanel panel5" caption="Image #2">
  78.                         <div class="innerPanel">
  79.                             <img src="js/stu12/banksy-sweep.jpg" alt="Banksy Graffiti - Sweep" />
  80.                             <p>Banksy - Sweep it away</p>
  81.                         </div>
  82.                     </div>
  83.                     <div class="slidePanel panel6" caption="Quote #3">
  84.                         <div class="innerPanel">
  85.                             <img src="js/stu12/chainsaw.jpg" alt="Banksy - Monkey holding a chainsaw" />
  86.                           <blockquote>"Graffiti ultimately wins out over proper art because it becomes part of your city, it' s a tool; 'I'll meet you in that pub, you know, the one opposite that wall with a picture of a monkey holding a chainsaw'. I mean, how much more useful can a painting be than that?"</blockquote>
  87.                             <p> - Banksy (Banging Your Head Against a Brick Wall)</p>
  88.                         </div>
  89.                     </div>
  90.             </div>
  91.         </li>
  92.         <li class="next"></li>
  93.         <li class="caption"></li>
  94.     </ul>
  95.     </div>
  96. </div>
  97. <div id="footer">
  98. <img src="images/logo_footer.png" alt=""/>
  99. </div>
  100. </body>
  101.  
  102. </html>

Código:
					<div class="slidePanel panel1" caption="Banksy">

✉

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.
  #2 (permalink)  
Antiguo 01/08/2011, 09:24
 
Fecha de Ingreso: julio-2011
Mensajes: 56
Antigüedad: 12 años, 8 meses
Puntos: 5
Respuesta: error en validacion: there is no attribute "caption"

en la linea 47 tienes el div con el caption,no se para que usaras ese atributo pero prueba a quitarlo sino te hace falta.
  #3 (permalink)  
Antiguo 01/08/2011, 10:02
Avatar de zerokilled
Javascripter
 
Fecha de Ingreso: abril-2009
Ubicación: Isla del Encanto, La Borinqueña [+>==]
Mensajes: 8.050
Antigüedad: 15 años
Puntos: 1485
Respuesta: error en validacion: there is no attribute "caption"

buenas,
el mismo reporte de error esta indicando cual es el problema. si lees detenidamente, dice que has utilizado un atributo que no tiene soporte o existencia en el document type que has seleccionado para el documento. en otras palabras que el atributo caption en el elemento DIV no existe y por tanto debes eliminarlo. fijate que no solo tienes el problema en la linea 47 del código mostrado, sino que también en otras lineas adicionales.

__________________
la maldad es una virtud humana,
y la espiritualidad es la lucha del hombre contra su maldad.
  #4 (permalink)  
Antiguo 01/08/2011, 10:59
 
Fecha de Ingreso: octubre-2010
Mensajes: 17
Antigüedad: 13 años, 6 meses
Puntos: 0
Respuesta: error en validacion: there is no attribute "caption"

ese es mi problema, que no puedo quitar ese caption por que deja de funcionar correctamente mi slider: http://red77.org/nuevo/


:s
  #5 (permalink)  
Antiguo 01/08/2011, 11:11
Avatar de zerokilled
Javascripter
 
Fecha de Ingreso: abril-2009
Ubicación: Isla del Encanto, La Borinqueña [+>==]
Mensajes: 8.050
Antigüedad: 15 años
Puntos: 1485
Respuesta: error en validacion: there is no attribute "caption"

es una técnica que ha creado una mala costumbre. por ejemplo, hay script tipo lightbox o slider que utilizan el atributo rel de forma incorrecta asignandole un valor que no figura en el estándar. por tanto, al intentar validar se reporta errores. en mi opinión, las alternativas que tienes son: dejar el script funcionando pero sin la posibilidad de crear un documento válido; validar el documento dejando a un lado el slider; buscar otro slider que respete los estandares; o fabricar tu propio slider.
__________________
la maldad es una virtud humana,
y la espiritualidad es la lucha del hombre contra su maldad.
  #6 (permalink)  
Antiguo 01/08/2011, 19:55
 
Fecha de Ingreso: octubre-2010
Mensajes: 17
Antigüedad: 13 años, 6 meses
Puntos: 0
Respuesta: error en validacion: there is no attribute "caption"

ya lo solucione cambie todos los caption por title=

tanto en el html como en el css y quedo validado y mi slider funcionando a la perfeccion¡¡¡

:D

Etiquetas: accesibilidad
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 00:44.