Foros del Web » Creando para Internet » HTML »

Problemas en la validacion

Estas en el tema de Problemas en la validacion en el foro de HTML en Foros del Web. HOla amigos por fin tengo mas o menos acabada mi web xD Gracias a la auda del foro pero ahora mi objetivo era conseguir 0 ...
  #1 (permalink)  
Antiguo 15/02/2010, 11:46
Avatar de picazamora  
Fecha de Ingreso: febrero-2008
Ubicación: Zamora
Mensajes: 72
Antigüedad: 16 años, 2 meses
Puntos: 0
Problemas en la validacion

HOla amigos por fin tengo mas o menos acabada mi web xD

Gracias a la auda del foro pero ahora mi objetivo era conseguir 0 errores en el w3c pero un sript me da errores y nose que es lo que esta mal os lo paso haber si sabeis lo que pasa. Muchas gracias a todos.

required attribute X not specified ✉
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 139, column 53: required attribute "TYPE" not specified
<script src="http://widgets.twimg.com/j/2/widget.js"></script>
Line 140, column 8: required attribute "TYPE" not specified
<script>
Line 197, column 34: required attribute "TYPE" not specified
<SCRIPT language=JavaScript>
  #2 (permalink)  
Antiguo 15/02/2010, 12:00
Avatar de hector2c  
Fecha de Ingreso: noviembre-2007
Ubicación: Perú - Tacna
Mensajes: 979
Antigüedad: 16 años, 5 meses
Puntos: 25
Respuesta: Problemas en la validacion

debes especificar el tipo de código:
<script language="javascript" type="text/javascript"></script>

debes agregar alt a tooodas las imagenes, alt es para mostrar un texto mientras va cargando la imagen...
<img alt='boton para enviar' src='enviar.jpg' />
__________________
blog: hector2c.wordpress.com
email: [email protected]
  #3 (permalink)  
Antiguo 15/02/2010, 12:09
Avatar de picazamora  
Fecha de Ingreso: febrero-2008
Ubicación: Zamora
Mensajes: 72
Antigüedad: 16 años, 2 meses
Puntos: 0
Respuesta: Problemas en la validacion

gracias ese error a desaparecido pero los errores se han multiplicado como los panes y los peces xD de 88 e pasado a 140 bueno voy a intentar solucionarlo yo si no soy capaz os volvere a consultar.

un Saludo
  #4 (permalink)  
Antiguo 15/02/2010, 12:12
Avatar de David
Moderador
 
Fecha de Ingreso: abril-2005
Ubicación: In this planet
Mensajes: 15.720
Antigüedad: 19 años
Puntos: 839
Hola, picazamora.

Traslado el tema a una sección que encaja mejor con tu pregunta.
Tema trasladado desde la sección de PHP.

Saludos.
__________________
Por favor, antes de preguntar, revisa la Guía para realizar preguntas.
  #5 (permalink)  
Antiguo 15/02/2010, 12:54
Avatar de picazamora  
Fecha de Ingreso: febrero-2008
Ubicación: Zamora
Mensajes: 72
Antigüedad: 16 años, 2 meses
Puntos: 0
Respuesta: Problemas en la validacion

Solo me quedan 2 errores je je pero este nose que es lo que pasa.
Este es mi error

character X invalid: only Y and parameter separators allowed ✉
Line 2, column 3: character "<" invalid: only delimiter ">", delimiter "[", system identifier, "CDATA", "NDATA", "SDATA" and parameter separators allowed
<html xmlns="http://www.w3.org/1999/xhtml" lang="ES-es">
  #6 (permalink)  
Antiguo 15/02/2010, 13:28
Avatar de picazamora  
Fecha de Ingreso: febrero-2008
Ubicación: Zamora
Mensajes: 72
Antigüedad: 16 años, 2 meses
Puntos: 0
Respuesta: Problemas en la validacion

hola amigos haber si me pueden ayudar de nuevo, mi nuevo problema viene con el enlace del facebook, el problema comienza aqui pero sigue siempre en el mismo sitio con el error

element X undefined ✉
You have used the element named above in your document, but the document type you are using does not define an element of that name. 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 "Frameset" document type to get the "<frameset>" element),
by using vendor proprietary extensions such as "<spacer>" or "<marquee>" (this is usually fixed by using CSS to achieve the desired effect instead).
by using upper-case tags in XHTML (in XHTML attributes and elements must be all lower-case).
Line 50, column 88: element "FB:FAN" undefined
…nections="0" logobar="1" width="185">
  #7 (permalink)  
Antiguo 15/02/2010, 14:37
Avatar de Kaze71  
Fecha de Ingreso: enero-2010
Mensajes: 44
Antigüedad: 14 años, 3 meses
Puntos: 4
Respuesta: Problemas en la validacion

Cambia todos los nombres de etiquetas y atributos a minúsculas, y el DOCTYPE cámbialo a Frameset si quieres usar frames. Y otra cosa, en XHTML no puedes usar la etiqueta <marquee>.
  #8 (permalink)  
Antiguo 19/02/2010, 09:43
Avatar de picazamora  
Fecha de Ingreso: febrero-2008
Ubicación: Zamora
Mensajes: 72
Antigüedad: 16 años, 2 meses
Puntos: 0
Respuesta: Problemas en la validacion

gracias a todos pero sigo poco a poco quito un problema y me salen 7 mas jeje

en fin como dice mi profe de java tankilo arregla el primero y alomejor ya no te dan mas xD

en fin mirad este error no entiendo lo que me quiere decir ni donde me lo da no entiendo muy bien por que.

así que acudo a vosotros.


Código HTML:
Line 32, Column 8: document type does not allow element "BODY" here
  <body>
✉
The element named above was found in a context where it is not allowed. This could mean that you have incorrectly nested elements -- such as a "style" element in the "body" section instead of inside "head" -- or two elements that overlap (which is not allowed).

One common cause for this error is the use of XHTML syntax in HTML documents. Due to HTML's rules of implicitly closed elements, this error can create cascading effects. For instance, using XHTML's "self-closing" tags for "meta" and "link" in the "head" section of a HTML document may cause the parser to infer the end of the "head" section and the beginning of the "body" section (where "link" and "meta" are not allowed; hence the reported error).
  #9 (permalink)  
Antiguo 19/02/2010, 10:35
Avatar de David
Moderador
 
Fecha de Ingreso: abril-2005
Ubicación: In this planet
Mensajes: 15.720
Antigüedad: 19 años
Puntos: 839
Respuesta: Problemas en la validacion

La etiqueta <body> está en un contexto no válido.

¿Cuál es el código HTML?
__________________
Por favor, antes de preguntar, revisa la Guía para realizar preguntas.
  #10 (permalink)  
Antiguo 19/02/2010, 11:05
Avatar de picazamora  
Fecha de Ingreso: febrero-2008
Ubicación: Zamora
Mensajes: 72
Antigüedad: 16 años, 2 meses
Puntos: 0
Respuesta: Problemas en la validacion

te paso la cabecera hasta donde empieza haber si ves tu el error, tambien tengo otro error con lo de la conexion del facebook pero bueno primero quiero arreglar esto.

Código HTML:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd"> 
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" > 
	<title>xxx - xxx</title>
	<link rel="shortcut icon" href="favicon.ico" type="image/x-icon" > 
    <link href="/estilo/estiloinicio.css" rel="stylesheet" type="text/css" >
    <meta name="description" content="xxx, xxx, xxx" >
    <meta name="keywords" content="xxx, xxxx, xxxx" >
    <meta name="author" content="xxx" >
    <meta name="robots" content="all" >
    <meta http-equiv="Content-Language" content="es" >
    <meta name="Language" content="Spanish">
    <meta name="copyright" content="www.xxx.es" >
    <meta name="Reply-to" content="[email protected]" >
    <meta name="generator" content="Bluefish 1.0.7" >
    <meta name="verify-v1" content="90qG4ey78PYHeWcZpNLzc9uTaXWZItxhVM0CNI5DLiE=" >

<script type="text/javascript">
       function popup() {
         window.open('', 'nueva', 'width=650,height=600,left=30,scrollbars=yes,directories=no,location=no');
       }
     </script>
<script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
</script>
<script type="text/javascript">
_uacct = "XXXXXX1";
urchinTracker();
</script>
<script src="http://static.ak.connect.facebook.com/js/api_lib/v0.4/FeatureLoader.js.php/es_LA" type="text/javascript"></script>
  </head>
  <body> 
  #11 (permalink)  
Antiguo 19/02/2010, 11:37
Avatar de David
Moderador
 
Fecha de Ingreso: abril-2005
Ubicación: In this planet
Mensajes: 15.720
Antigüedad: 19 años
Puntos: 839
Respuesta: Problemas en la validacion

¿Por qué usas DOCTYPE Frameset?
__________________
Por favor, antes de preguntar, revisa la Guía para realizar preguntas.
  #12 (permalink)  
Antiguo 19/02/2010, 11:52
Avatar de picazamora  
Fecha de Ingreso: febrero-2008
Ubicación: Zamora
Mensajes: 72
Antigüedad: 16 años, 2 meses
Puntos: 0
Respuesta: Problemas en la validacion

por que me lo recomendaron para los conectores del facebook pero creo que todo viene de hay yo suelo usar transitional.

de hecho si uso ese valor solo me da errores menore pero claro la conexion con el facebook no deja de chillar
  #13 (permalink)  
Antiguo 19/02/2010, 11:59
Avatar de David
Moderador
 
Fecha de Ingreso: abril-2005
Ubicación: In this planet
Mensajes: 15.720
Antigüedad: 19 años
Puntos: 839
Respuesta: Problemas en la validacion

Sólo debes usar el DOCTYPE Frameset si vas a usar <frameset> (frames):
http://www.w3.org/TR/html401/sgml/framesetdtd.html
__________________
Por favor, antes de preguntar, revisa la Guía para realizar preguntas.

Etiquetas: Ninguno
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:45.