Título: Problema con el doctype Publicado por: CarloxTheBoy 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" 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"> Título: Re: Problema con el doctype Publicado por: CarloxTheBoy 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.
Título: Re: Problema con el doctype Publicado por: Doodleo 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.
|