elhacker.net cabecera Bienvenido(a), Visitante. Por favor Ingresar o Registrarse
¿Perdiste tu email de activación?.

 

 


Tema destacado: ¿Eres nuevo? ¿Tienes dudas acerca del funcionamiento de la comunidad? Lee las Reglas Generales


+  Foro de elhacker.net
|-+  Programación
| |-+  Desarrollo Web (Moderador: #!drvy)
| | |-+  Problema con el doctype
0 Usuarios y 1 Visitante están viendo este tema.
Páginas: [1] Ir Abajo Respuesta Imprimir
Autor Tema: Problema con el doctype  (Leído 1,704 veces)
CarloxTheBoy

Desconectado Desconectado

Mensajes: 17


Ver Perfil
Problema con el doctype
« en: 21 Junio 2012, 14:33 pm »

programo paginas web en XHTML 1.0 Strict, pero siempre que valido una pagina en un validador, me da un error. Aquí pongo una pagina simple y los errores que me dan para que lo veais.


Código:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta htp-equiv="Content-Type" content="text/html; charset=UTF-8">
      <title>Albert I | El primer mono astronauta</title>
  </head>
  <body>
  <p><img src="famous_primates_brand.png" alt="aaa" /></p>
  <h1>Albert</h1>
  <p>On June 11, 1948, Albert I - the first monkey astronaut - launched into space on a V-2 Blossom III rocket from White Sands Proving Ground, a NASA space station in New Mexico. The first of four monkeys (Albert I-IV) launched into space between June 1948 and December 1949, Albert was the original monkey pioneer.</p>
  <p>Albert's journey would begin a fruitful period of research for NASA which would culminate in Neil Armstrong's momentous journey to the moon. One small step for man, one giant leap for primatekind. Sadly, a lack of fanfare resulted in Albert I remaining an unsung hero of animal astronauts.</p>
  <p><img src="albert.jpg" title="Albert" alt="El Mono astronauta Albert" /></p>
  <!-- Soy muy vago y no lo traduzco al español -->
  </body>
</html>

 Line 5, Column 21: there is no attribute "htp-equiv"
    <meta htp-equiv="Content-Type" content="text/html; charset=UTF-8">

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 5, Column 71: end tag for "meta" omitted, but OMITTAG NO was specified
    <meta htp-equiv="Content-Type" content="text/html; charset=UTF-8">

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 5, Column 5: start tag was here
    <meta htp-equiv="Content-Type" content="text/html; charset=UTF-8">


En línea

CarloxTheBoy

Desconectado Desconectado

Mensajes: 17


Ver Perfil
Re: Problema con el doctype
« Respuesta #1 en: 21 Junio 2012, 14:38 pm »

Ya nada, me di cuenta del error. Tenia que incluir   <meta htp-equiv="Content-Type" content="text/html; charset=UTF-8"> en la etiqueta <html>, ya esta todo arreglado.


En línea

Doodleo

Desconectado Desconectado

Mensajes: 8


Ver Perfil
Re: Problema con el doctype
« Respuesta #2 en: 22 Junio 2012, 20:25 pm »

Creo que en verdad el error es que has puesto htp-equiv en vez de http-equiv, te faltaba una t, la línea de codificación debe ir en el head de la página.
En línea

Páginas: [1] Ir Arriba Respuesta Imprimir 

Ir a:  

Mensajes similares
Asunto Iniciado por Respuestas Vistas Último mensaje
Problema BlueZScanner y problema de conexión
Hacking Mobile
Kasswed 3 6,238 Último mensaje 6 Mayo 2006, 22:04 pm
por Gospel
WAP2 - Aviso Legal - Powered by SMF 1.1.21 | SMF © 2006-2008, Simple Machines