Foros del Web » Creando para Internet » CSS »

validacion xhtml

Estas en el tema de validacion xhtml en el foro de CSS en Foros del Web. Hola!!! Como puedo poner un formulario de entrada(usuario, contraseña) para que me de un codigo valido en w3c? Con tabla no me deja y no ...
  #1 (permalink)  
Antiguo 30/09/2004, 04:15
 
Fecha de Ingreso: junio-2004
Mensajes: 88
Antigüedad: 19 años, 10 meses
Puntos: 0
validacion xhtml

Hola!!!
Como puedo poner un formulario de entrada(usuario, contraseña) para que me de un codigo valido en w3c? Con tabla no me deja y no entiendo el por que. Algo asi:

-Line 30, column 46: document type does not allow element "form" here

<form method="post" action="acicaesocios.php">

o tambien esto:

-Line 32, column 4: document type does not allow element "tr" here; assuming missing "table" start-tag

<tr>

-Line 49, column 41: end tag for "input" omitted, but OMITTAG NO was specified

<input type="submit" value="enviar"></td></tr>

You may have neglected to close a tag, or perhaps you meant to "self-close" a tag; that is, ending it with "/>" instead of ">".


-Line 49, column 1: start tag was here

<input type="submit" value="enviar"></td></tr>

Line 50, column 43: required attribute "alt" not specified

<tr><td><img src="casa.jpg" width="10px" />

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>.



Gracias!!!
  #2 (permalink)  
Antiguo 30/09/2004, 04:39
 
Fecha de Ingreso: junio-2004
Mensajes: 266
Antigüedad: 19 años, 10 meses
Puntos: 8
No se decirte ahora de memoria pero prueba una estructura algo asi:

<form...> <table>....</table></form> (esto para tu primera cuestion, igual puede que hayas abierto/cerrado un td/tr donde a distinto nivel)

Para la linea de error 49 debes saber k en xhtml todas las etiquetas han de estar cerradas, esto tb es válido para <br>, <img>, <input>... que ahora son <br/>,<img/>, <input/>... en tu caso:

<input type='submit' value='enviar' />

En la linea 50 te esta diciendo que es obligatorio el uso del atributo alt en la etiketa </img>, aunk no quieras mostrar nada al pasar el raton sobre la imagen, luego:

<img src="casa.jpg" width="10px" alt="" />

Espero te sirva de ayuda y no dejes de respetar las rekomendaciones del w3c
__________________
WebSenior
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 05:55.