+ 1
Can we include HTML in PHP ? How
4 Respostas
+ 1
Yes. like that
<?php echo "<h1>Title </h1>"; ?>
Or like that.
<?php echo ?>
<h1>Title </h1>
<p>Lorem ipsum... </p>
<?php ?>
+ 1
<?php
include('myHtmlFile.html');
?>
0
<?php echo "<h1> Welcome </h1>"; ?>
0
<?php echo '<div class="my_class">your data to be displayed.</div>';