Ver Mensaje Individual
  #8 (permalink)  
Antiguo 27/05/2008, 14:54
Avatar de DragonX
DragonX
Colaborador
 
Fecha de Ingreso: mayo-2002
Ubicación: Funkyland
Mensajes: 8.433
Antigüedad: 21 años, 10 meses
Puntos: 177
Respuesta: Validación Xhtml

Cita:
Iniciado por DragonX Ver Mensaje
te faltaron las comillas o te sobro una barra :)

Cita:
<script type="text/javascript">
....
</script>


Cita:
Iniciado por JUMASOL Ver Mensaje
Sí, yo lo he puesto como dices, pero me sigue saliendo un error que dice:

Line 181, Column 8: end tag for element "script" which is not open.
</script>

El caso es que dicha etiqueta sí está abierta.

En fin, os pongo todo el fragmento de código para verlo en vivo:


<script type="text/javascript"/>
<!--

// Zona Horaria
function fecha()
{
today = new Date()
day = today.getDay()
if ( day == 0 ) {
document.write("Domingo, ");
}
if ( day == 1 ) {
document.write("Lunes, ");
}
if ( day == 2 ) {
document.write("Martes, ");
}
if ( day == 3 ) {
document.write("Miércoles, ");
}
if ( day == 4 ) {
document.write("Jueves, ");
}
if ( day == 5 ) {
document.write("Viernes, ");
}
if ( day == 6 ) {
document.write("Sábado, ");
}

today = new Date()
hours = today.getHours()
minutes = today.getMinutes()
year = parseInt(today.getYear(),10)

zerom = ''
zeroh = ''
if ( minutes < 10 ) { zerom = 0 }
if ( hours < 10 ) { zeroh = 0 }

if ( today.getMonth() == 0 ) { month = "Enero" }
if ( today.getMonth() == 1 ) { month = "Febrero" }
if ( today.getMonth() == 2 ) { month = "Marzo" }
if ( today.getMonth() == 3 ) { month = "Abril" }
if ( today.getMonth() == 4 ) { month = "Mayo" }
if ( today.getMonth() == 5 ) { month = "Junio" }
if ( today.getMonth() == 6 ) { month = "Julio" }
if ( today.getMonth() == 7 ) { month = "Agosto" }
if ( today.getMonth() == 8 ) { month = "Septiembre" }
if ( today.getMonth() == 9 ) { month = "Octubre" }
if ( today.getMonth() == 10 ) { month = "Noviembre" }
if ( today.getMonth() == 11 ) { month = "Diciembre" }
if ( today.getYear() == 99 ) { year = "1999" }
if ( today.getYear() == 0 || today.getYear() == 100 || today.getYear() == 2000) { year = "2000" }

document.write( today.getDate()," de ",month," del ",year );
}

-->
</script>


¿No está abierta arriba con <script type="text/javascript"/>?

Un saludo.


Cita:
Iniciado por Mikmoro Ver Mensaje
Por decírtelo más claro y que te sirva en el futuro:

existen dos formas de poner las etiquetas de marcado: pareadas y no pareadas.

Las pareadas llevan su correspondiente etiqueta de cierre <p>...</p>

Las no pareadas van cerradas en sí mismas y son etiquetas vacías <br/>

<link rel="stylesheet" type="text/css" href="pie.css" media="all" /> está cerrada en sí misma y no necesita par de cierrre, porque lleva dentro todos sus atributos dentro y no contendrá nada más

Con fijarte bien en esto evitarás bastantes problemas de validación.

Mikel.
__________________
Desarrollos dosLotos
Calendario Maya, Meditación, Osho