Foros del Web » Creando para Internet » HTML »

Errores al validar web

Estas en el tema de Errores al validar web en el foro de HTML en Foros del Web. Alguien me puede ayudar con estos errores? Line 11, Column 8: required attribute "type" not specified <script> ✉ The attribute given above is required for ...
  #1 (permalink)  
Antiguo 29/11/2009, 10:32
 
Fecha de Ingreso: noviembre-2009
Mensajes: 1
Antigüedad: 8 años
Puntos: 0
Errores al validar web

Alguien me puede ayudar con estos errores?

Line 11, Column 8: required attribute "type" not specified
<script> ✉
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 48, Column 24: Attribute "align" exists, but can not be used for this element.
<div align="left">Usuario</div>✉
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.
Line 48, Column 30: document type does not allow element "div" here; missing one of "object", "ins", "del", "map", "button" start-tag
<div align="left">Usuario</div>✉
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>").
Line 57, Column 30: document type does not allow element "div" here; missing one of "object", "ins", "del", "map", "button" start-tag
<div align="left">Contraseña</div>✉
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>").
Line 76, Column 45: document type does not allow element "input" here; missing one of "p", "h1", "h2", "h3", "h4", "h5", "h6", "div", "pre", "address", "fieldset", "ins", "del" start-tag
<input type="submit" value="Registrarse">✉
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>").
Line 76, Column 46: end tag for "input" omitted, but OMITTAG NO was specified
…t type="submit" value="Registrars…✉
You may have neglected to close an element, or perhaps you meant to "self-close" an element, that is, ending it with "/>" instead of ">".
Line 76, Column 4: start tag was here
<input type="submit" value="Registrarse"> Line 77, Column 14: XML Parsing Error: Opening and ending tag mismatch: input line 76 and form
</form>✉
Line 81, Column 6: XML Parsing Error: Opening and ending tag mismatch: form line 75 and div
</div> <!--Fin del formulario2--> ✉
Line 157, Column 7: XML Parsing Error: Opening and ending tag mismatch: div line 24 and body
</body> <!--Fin del body-->✉
Line 158, Column 7: XML Parsing Error: Opening and ending tag mismatch: body line 23 and html
</html>✉
Line 158, Column 7: XML Parsing Error: Premature end of data in tag html line 2
</html>

Un saludo

!
  #2 (permalink)  
Antiguo 29/11/2009, 11:36
Avatar de mayid
Colaborador
 
Fecha de Ingreso: marzo-2009
Ubicación: BsAs
Mensajes: 4.014
Antigüedad: 8 años, 8 meses
Puntos: 101
Respuesta: Errores al validar web

Cita:
Line 11, Column 8: required attribute "type" not specified
<script> ✉
Esto es claro. Tenes que especificar que el script es javascript:

Cita:
<script type="text/javascript">
Cita:
Line 48, Column 24: Attribute "align" exists, but can not be used for this element.
<div align="left">Usuario</div>✉
Esto me parece que esta mal porque el div es una etiqueta de bloque, y align presumo que se usa para etiquetas de linea. Quizas funcionaria con un display:inline , pero yo no recomiendo que uses "align" porque me parece que es un atributo obsoleto.


Cita:
<div align="left">Usuario</div>✉
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>").
Aca te dicen que tu div no puede estar en donde esta porque es de bloque, y esta situado dentro de un elemento de linea (por ejemplo, un enlace o quizas un li). Si lo convirtiera en un elemento de linea iria bien.

Y esto otro:
Cita:
<input type="submit" value="Registrarse">✉

Es porque usas cabecera para xhtml, y por ende necesitas cerrar si o si el input, cosa que no estas haciendo. Agregale una barra.

Cita:
<input type="submit" value="Registrarse" />✉
Espero esto te solucione la mayoria de los problemas.
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 17:55.