Tengo una posible pregunta estúpida, pero la preguntaré de todos modos.PHP o HTML primero o ¿es importante?
¿Qué importa primero, código PHP o HTML?
Por ejemplo: ¿PHP va antes que HTML, después de HTML o importa para nada?
<?php
echo "This is text";
?>
<html>
<head>
</head>
<body>
<center>
<font size="2">This is text</font>
</center>
</body>
</html>
O:
<html>
<head>
</head>
<body>
<center>
<font size="2">This is text</font>
</center>
</body>
</html>
<?php
echo "This is text";
?>
O:
<html>
<head>
</head>
<body>
<?php
echo "This is text";
?>
</body>
</html>
Me gusta la opción # 4.Mantenga el HTML y lo que lo controla * por separado * ya sea un "modelo de widget" o "MVC" o "plantilla" o lo que sea ... (pero solo uno de los anteriores hará lo que realmente se requiere: ' ?>' ejecuta " en línea ".) –
@pst Gracias, aprecio su aporte. –