lunes, 26 de noviembre de 2012

Ejemplos XHTML

Ejemplo 1
 
version="1.0" encoding="ISO-8859-1"?>

"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="es">
  <head>
    <title>Título del documento</title>
  </head>
  <body>
    <h1><img src="j0335100.gif" width="85" height="85" alt="logo" />
    Cabecera de documento</h1> <!-- Título de sección -->
    <p id="inicial">Entrada de texto<br />
    <input type="text" value="  " readonly="readonly" /></p>
    <hr />
  </body>
</html>
 
 
Ejemplo 2
 
version="1.0" encoding="ISO-8859-1"?>

  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="es" lang="es">
  <head>
    <title>Título del documento</title>
  </head>
  <body>
    <h1>Cabecera de documento</h1> <!-- Título de sección -->
    <p id="inicial">Un párrafo en el cuerpo<br />del documento.</p>
    <hr />
  </body>
</html> 
 
Ejemplo 3
 
version="1.0" encoding="ISO-8859-1"?>

  "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="es">
  <head>
    <title>Título del documento</title>
  </head>
  <body>
    <h1>Cabecera de documento</h1> <!-- Título de sección -->
    <p id="inicial">Un párrafo en el cuerpo<br />del documento.</p>
    <hr />
  </body>
</html> 
 
Referencia
http://lsi.vc.ehu.es/asignaturas/ISoft/ej-xhtml/index.html 

No hay comentarios:

Publicar un comentario