Tema: DOCTYPE php?
Ver Mensaje Individual
  #5 (permalink)  
Antiguo 12/08/2012, 13:46
Avatar de rodrigo791
rodrigo791
 
Fecha de Ingreso: noviembre-2009
Ubicación: Uruguay
Mensajes: 1.339
Antigüedad: 14 años, 5 meses
Puntos: 168
Respuesta: DOCTYPE php?

no hay estandares para php porque no es para php, es para html xhtml y ahora html5.

si tenes un archivo.php que contiene html y php deberias usar los estandares al principio del documento para no tener problemas de ningun tipo, no por el php sino por el html.
Código PHP:
Ver original
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  3.  
  4. <head>
  5.     <meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
  6.     <meta name="author" content="rodrigo" />
  7.  
  8.     <title>Sitio</title>
  9. </head>
  10.  
  11. <body>
  12.  
  13. <?php
  14. echo "Hola esto es un documento .php que contiene código HTML también, por eso uso los estandares";
  15. ?>
  16.  
  17. </body>
  18. </html>