¿Por qué este código de error que muestra en validador del W3C?
-
26-09-2019 - |
Pregunta
¿Por qué el código de error que muestra en validador del W3C "no está permitido aquí los datos de caracteres"
<blockquote>all visible objects, man, are but as pasteboard masks.
But in each event -- in the living act, the undoubted
deed -- there, some unknown but still reasoning thing
puts forth the mouldings of its feature from behind
the unreasoning mask. If man will strike, strike
through the mask. All visible objects, man, are but as pasteboard masks.
But in each event -- in the living act, the undoubted
deed -- there, some unknown but still reasoning thing
puts forth the mouldings of its feature from behind
the unreasoning mask. If man will strike, strike
through the mask.</blockquote>
No dar ningún error en este validador http://www.onlinewebcheck.com/
Solución
A blockquote
no se supone que contiene el texto directamente. Tendrá que ajustar su texto en una sola etiqueta p
o una serie de etiquetas p
antes de que se va a validar.
Otros consejos
No se puede poner el texto dentro de una etiqueta <blockquote>
. Usted tiene que envolverlo en otro elemento tal como una etiqueta <p>
:
<blockquote>
<p>My text.</p>
</blockquote>
Nota: Para validar un elemento blockquote tan estrictas HTML / XHTML, el elemento debe contener solamente otros elementos en bloque, como esto:
Esta es una larga cita aquí hay una larga cita ??p>
Fuente: w3schools.com