HTML HTML atributo xmlns
Ejemplos
Un documento XHTML simple, con un mínimo de variables necesarias:
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta charset="utf-8">
<title>文档标题</title>
</head>
<body>
文档内容......
</body>
</html>
<head>
<meta charset="utf-8">
<title>文档标题</title>
</head>
<body>
文档内容......
</body>
</html>
Trate »
Soporte para el navegador
Todos los principales navegadores soportan el atributo xmlns.
Definición y Uso
Nota: En XHTML, xmlns atributo es necesario.En HTML, atributo xmlns es válido.
xmlns atributo especifica el espacio de nombres documento XML.
Sin embargo, si usted no utiliza los xmlns en documentos XHTML, http://w3.org el validador HTML reconozca correctamente el documento. Esto se debe a las "xmlns =" http: //www.w3.org/1999/xhtml espacio de nombres es el valor por defecto, que se añadirá automáticamente a la etiqueta <html>.
gramática
<html xmlns="http://www.w3.org/1999/xhtml">
propiedad Valor
值 | 描述 |
---|---|
http://www.w3.org/1999/xhtml | 要使用的命名空间(XHTML 文档)。 |
etiqueta HTML <html>