Foros del Web » Creando para Internet » HTML »

Problemas con la validación W3C con el archivo navigation.html

Estas en el tema de Problemas con la validación W3C con el archivo navigation.html en el foro de HTML en Foros del Web. Hola a todos !! Tengo este problema en el archivo navigation.html que no cumple las normas de w3c y me dice lo siguiente Código: Error ...
  #1 (permalink)  
Antiguo 07/11/2011, 17:05
 
Fecha de Ingreso: noviembre-2011
Ubicación: barcelona
Mensajes: 1
Antigüedad: 12 años, 5 meses
Puntos: 0
Pregunta Problemas con la validación W3C con el archivo navigation.html

Hola a todos !!

Tengo este problema en el archivo navigation.html que no cumple las normas de w3c y me dice lo siguiente

Código:
Error Line 227, Column 84: document type does not allow element "p" here; missing one of "object", "ins", "del", "map", "button" start-tag

…ndustrial.com/buscador.php">Buscador avanzado<p>Encuentra lo que buscas</p></a>

✉

The mentioned element is not allowed to appear in the context in which you've placed it; the other mentioned elements are the only ones that are both allowed there and can contain the element mentioned. This might mean that you need a containing element, or possibly that you've forgotten to close a previous element.

One possible cause for this message is that you have attempted to put a block-level element (such as "<p>" or "<table>") inside an inline element (such as "<a>", "<span>", or "<font>").
Error Line 230, Column 91: document type does not allow element "p" here; missing one of "object", "ins", "del", "map", "button" start-tag

…trial.com/lastmessages.php">100 últimos mensajes<p>Posteados en el foro</p></a>

✉

The mentioned element is not allowed to appear in the context in which you've placed it; the other mentioned elements are the only ones that are both allowed there and can contain the element mentioned. This might mean that you need a containing element, or possibly that you've forgotten to close a previous element.

One possible cause for this message is that you have attempted to put a block-level element (such as "<p>" or "<table>") inside an inline element (such as "<a>", "<span>", or "<font>").
Error Line 233, Column 73: document type does not allow element "p" here; missing one of "object", "ins", "del", "map", "button" start-tag

…dindustrial.com/fanpage.php">Fanpage<p>Página de seguidores en Facebook</p></a…

✉

The mentioned element is not allowed to appear in the context in which you've placed it; the other mentioned elements are the only ones that are both allowed there and can contain the element mentioned. This might mean that you need a containing element, or possibly that you've forgotten to close a previous element.

One possible cause for this message is that you have attempted to put a block-level element (such as "<p>" or "<table>") inside an inline element (such as "<a>", "<span>", or "<font>").
Error Line 236, Column 92: document type does not allow element "p" here; missing one of "object", "ins", "del", "map", "button" start-tag

…trial.com/condiciones.php">Términos y condiciones<p>Condiciones legales</p></a>

✉

The mentioned element is not allowed to appear in the context in which you've placed it; the other mentioned elements are the only ones that are both allowed there and can contain the element mentioned. This might mean that you need a containing element, or possibly that you've forgotten to close a previous element.

One possible cause for this message is that you have attempted to put a block-level element (such as "<p>" or "<table>") inside an inline element (such as "<a>", "<span>", or "<font>").
Error Line 256, Column 65: document type does not allow element "p" here; missing one of "object", "ins", "del", "map", "button" start-tag

…www.mecanet.es/">Servicio de Mecanizados<p>Para empresas y particulares</p></a>

✉

The mentioned element is not allowed to appear in the context in which you've placed it; the other mentioned elements are the only ones that are both allowed there and can contain the element mentioned. This might mean that you need a containing element, or possibly that you've forgotten to close a previous element.

One possible cause for this message is that you have attempted to put a block-level element (such as "<p>" or "<table>") inside an inline element (such as "<a>", "<span>", or "<font>").
Error Line 259, Column 89: document type does not allow element "p" here; missing one of "object", "ins", "del", "map", "button" start-tag

…publicidad.php">Contratar publicidad<p>Actualmente con más de 40000 visitas al…

✉

The mentioned element is not allowed to appear in the context in which you've placed it; the other mentioned elements are the only ones that are both allowed there and can contain the element mentioned. This might mean that you need a containing element, or possibly that you've forgotten to close a previous element.

One possible cause for this message is that you have attempted to put a block-level element (such as "<p>" or "<table>") inside an inline element (such as "<a>", "<span>", or "<font>").
Error Line 937, Column 4: document type does not allow element "p" here; missing one of "object", "ins", "del", "map", "button" start-tag

	<p></p>

✉

The mentioned element is not allowed to appear in the context in which you've placed it; the other mentioned elements are the only ones that are both allowed there and can contain the element mentioned. This might mean that you need a containing element, or possibly that you've forgotten to close a previous element.

One possible cause for this message is that you have attempted to put a block-level element (such as "<p>" or "<table>") inside an inline element (such as "<a>", "<span>", or "<font>").


y esto es lo que tengo en el achivo navigation en lo que a la parte afectada se refiere

Código:
<li class="<!-- IF SCRIPT_NAME eq 'index.php' -->activetab<!-- ENDIF -->">
			<a href="index.php"><span>Areas</span></a>
		<div class="sub">
   				<ul>	
					<li>
						<a href="http://www.comunidadindustrial.com/buscador.php">Buscador avanzado</a>
						<p>Encuentra lo que buscas</p></a>
					</li>
   					<li>
						<a href="http://www.comunidadindustrial.com/lastmessages.php">100 últimos mensajes</a>
						<p>Posteados en el foro</p>
					</li>
					<li>
						<a href="http://www.comunidadindustrial.com/fanpage.php">Fanpage<p>Página de seguidores en Facebook</p></a>
							</li>
					<li>
						<a href="http://www.comunidadindustrial.com/condiciones.php">Términos y condiciones<p>Condiciones legales</p></a>
					</li>
   				</ul>
   				<div class="btm-bg"></div>
   			</div>
		</li>
		<li class="<!-- IF SCRIPT_NAME eq 'index.php' -->activetab<!-- ENDIF -->">
			<a href="http://www.comunidadindustrial.com/knowledge/index.php"><span>ArtÃ*culos</span></a>
			</li>
			<li class="<!-- IF SCRIPT_NAME eq 'index.php' -->activetab<!-- ENDIF -->">
			<a href="http://www.comunidadindustrial.com/calendar.php"><span>Calendario</span></a>
			</li>
						<li class="<!-- IF SCRIPT_NAME eq 'fanpage.php' -->activetab<!-- ENDIF -->">
			<a href="http://www.comunidadindustrial.com/youtube.php"><span>Videos</span></a>
			</li>
		<li class="<!-- IF SCRIPT_NAME eq 'index.php' -->activetab<!-- ENDIF -->">
			<a href="index.php"><span>Servicios</span></a>
			<div class="sub">
   				<ul>
   					<li>
						<a href="http://www.mecanet.es/">Servicio de Mecanizados<p>Para empresas y particulares</p></a>
					</li>
   					<li>
						<a href="http://www.comunidadindustrial.com/publicidad.php">Contratar publicidad<p>Actualmente con más de 40000 visitas al mes y 50000 páginas vistas al dÃ*a.</p></a>
								</li>
   				</ul>              
   				<div class="btm-bg"></div>
   			</div>
		</li>
		<li id="searchbox">
si alguien sabe como solucionarlo sin que degenere las ventanas flotantes al quitarle la </p> en la linea <a href=" lo agradeceria

saludos cordiales
  #2 (permalink)  
Antiguo 07/11/2011, 19:21
Avatar de emprear
Colaborador
 
Fecha de Ingreso: junio-2007
Ubicación: me mudé
Mensajes: 8.388
Antigüedad: 16 años, 10 meses
Puntos: 1567
Respuesta: Problemas con la validación W3C con el archivo navigation.html

Te pongo un sólo ejemplo


Vos tenes

<a href="http://www.comunidadindustrial.com/condiciones.php">Términos y condiciones<p>Condiciones legales</p></a>

Estás poniendo un elemento de bloque<p> dentro de un elemento inline, <a>
por le que el validador te dice
document type does not allow element "p" here;

Ahora a agarrar los manuales por favor !!!

SAludos
__________________
La voz de las antenas va, sustituyendo a Dios.
Cuando finalice la mutación, nueva edad media habrá
S.R.
  #3 (permalink)  
Antiguo 07/11/2011, 22:01
Avatar de arcanisgk122  
Fecha de Ingreso: junio-2010
Mensajes: 755
Antigüedad: 13 años, 11 meses
Puntos: 28
Respuesta: Problemas con la validación W3C con el archivo navigation.html

emprear tiene toda la razon el problema no es ni el mensaje ni el código, mas bien son las ganas de descubrir por ti mismo cual es el error, y si no sabes por que esta en ingles la traducción:

tipo de documento no permite que el elemento "p" aquí;

no puede ser mas explicativo el validado.
__________________
Cooler Master Gladiator 600 - AMD PHENOM II X4 955 @ 3.5GHZ
GA-MA78GM-US2H - Super Talent 800 2GB x 2 Dual, (Unganged)
PSU Cooler Master eXtreme Power Plus 500W - Saphire R7-260OC-2GB

Etiquetas: navigation, solucion, w3c
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 20:59.