Foros del Web » Creando para Internet » CSS »

Problemas con el validador w3c

Estas en el tema de Problemas con el validador w3c en el foro de CSS en Foros del Web. Hola, He hecho la primera página de un nuevo sitio que estoy preparando, y cuanto más intento arreglar peor. He cambiado las ñ por &ntilde ...
  #1 (permalink)  
Antiguo 08/02/2011, 13:49
 
Fecha de Ingreso: febrero-2011
Mensajes: 7
Antigüedad: 13 años, 2 meses
Puntos: 0
Problemas con el validador w3c

Hola,
He hecho la primera página de un nuevo sitio que estoy preparando, y cuanto más intento arreglar peor. He cambiado las ñ por &ntilde y ahora tengo más errores, he cambiado las etiquetas ALT por alt y sigo aumentando... ¿Esto va al revés o qué?
Si alguien le echara un vistazo estaría eternamente agradecido. La página es [URL="www.freespanishteacheronline.com/index.html"]www.freespanishteacheronline.com/index.html[/URL]
Un saludo
  #2 (permalink)  
Antiguo 08/02/2011, 14:03
Avatar de armandoweb  
Fecha de Ingreso: enero-2003
Ubicación: San Cristobal, Santa Fe, Argentina
Mensajes: 544
Antigüedad: 21 años, 2 meses
Puntos: 7
Respuesta: Problemas con el validador w3c

Hola:

Estuve viendo el codigo fuente de tu web y le faltan las comillas a todos los valores...

Por ejemplo tienes esto: <TABLE WIDTH=100% BORDER=0 CELLPADDING=4 CELLSPACING=0>

Y va asi: <TABLE WIDTH="100%" BORDER="0" CELLPADDING="4" CELLSPACING="0">

Prueba de corregir todo, validalo nuevamente y luego nos cuentas...

Saludos.
__________________
www.awdesarrollos.com.ar - [twitter: @armandoweb] - [Skype: awdesarrollos"]
  #3 (permalink)  
Antiguo 08/02/2011, 17:19
 
Fecha de Ingreso: febrero-2011
Mensajes: 7
Antigüedad: 13 años, 2 meses
Puntos: 0
Respuesta: Problemas con el validador w3c

Vaya, muchas gracias! Tenías razón, armandoweb. He puesto comillas y se han arreglado muchos errores, pero sigue habiendo. :(
He puesto utf-8 como charset y he puesto lo de &ntilde para las ñ. ¿eso está bien o da igual? ¿hago lo mismo con las tildes? Otra cosa que no se si falla es que no he puesto id en nada ¿eso hace falta aunque no use javascript? Como veis, estoy más perdido que un pulpo en un garaje...
Gracias a todos
  #4 (permalink)  
Antiguo 08/02/2011, 17:42
Avatar de ArturoGallegos
Moderador
 
Fecha de Ingreso: febrero-2008
Ubicación: Morelia, México
Mensajes: 6.774
Antigüedad: 16 años, 1 mes
Puntos: 1146
Respuesta: Problemas con el validador w3c

veo que usas html 4 aunque este si acepta las etiquetas en mayusculas es preferentemente usar las etiquetas en minusculas...

por otro lado los errores que te persisten es el mismo motivo que el anterior

Código HTML:
Ver original
  1. <h1><a href= http://sites.google.com/site/freespanishteacheronline  onMouseOver

?¿ las comillas se te olvidaron cierto?

Código HTML:
Ver original
  1. <h1><a href="http://sites.google.com/site/freespanishteacheronline"  onMouseOver
  #5 (permalink)  
Antiguo 09/02/2011, 02:59
 
Fecha de Ingreso: febrero-2011
Mensajes: 7
Antigüedad: 13 años, 2 meses
Puntos: 0
Respuesta: Problemas con el validador w3c

Muchas gracias. Eso me deja sólo cuatro errores:
Cita:
Validation Output: 4 Errors

1. Error Line 19, Column 98: there is no attribute "NAME"

…nline.com/imagenes/cabecera.gif" name="cabecera" alt="CABECERA" align="MIDDLE"…



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. Error Line 36, Column 137: end tag for "SPAN" omitted, but its declaration does not permit this

…ishteacheronline.com" target="_blank">www.freespanishteacheronline.com</A></h4>


* You forgot to close a tag, or
* you used something inside this tag that was not allowed, and the validator is complaining that the tag should be closed before such content can be allowed.

The next message, "start tag was here" points to the particular instance of the tag in question); the positional indicator points to where the validator expected you to close the tag.
3. Info Line 32, Column 222: start tag was here

…" alt="Creative Commons" width="10%" border="0"></A><BR><SPAN LANG="en-US">This

4. Warning Line 43, Column 21: NET-enabling start-tag requires SHORTTAG YES

<p><a href= http://sites.google.com/site/freespanishteacheronlinees>Encuentr…



The sequence <FOO /> can be interpreted in at least two different ways, depending on the DOCTYPE of the document. For HTML 4.01 Strict, the '/' terminates the tag <FOO (with an implied '>'). However, since many browsers don't interpret it this way, even in the presence of an HTML 4.01 Strict DOCTYPE, it is best to avoid it completely in pure HTML documents and reserve its use solely for those written in XHTML.
5. Error Line 43, Column 453: end tag for element "A" which is not open

…er <b>fácil de encontrar</b>.<br>Que lo disfrutes, y habla de nosotros.</a></p>



The Validator found an end tag for the above element, but that element is not currently open. This is often caused by a leftover end tag from an element that was removed during editing, or by an implicitly closed element (if you have an error related to an element being used where it is not allowed, this is almost certainly the case). In the latter case this error will disappear as soon as you fix the original problem.

If this error occurred in a script section of your document, you should probably read this FAQ entry.
6. Error Line 47, Column 195: an attribute value must be a literal unless it contains only name characters

…OTTOM" alt="Creative Commons" width=10% border=0></A><BR>Esta obra está bajo u…



You have used a character that is not considered a "name character" in an attribute value. Which characters are considered "name characters" varies between the different document types, but a good rule of thumb is that unless the value contains only lower or upper case letters in the range a-z you must put quotation marks around the value. In fact, unless you have extreme file size requirements it is a very very good idea to always put quote marks around your attribute values. It is never wrong to do so, and very often it is absolutely necessary.
Gracias otr vez

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 09:50.