how to use php, html, css togther in a html template [closed]
- by pandu
I work with conversion of a html template in to PHP, normally i code like this
<div id="test">
<?php echo "<p>hello world</p>"; ?>
</div>
<?php
for($i=0;$i<=8;$i++){
echo "<ul>";
echo "<li>link1";
echo "<li>link2";
echo "</ul>";
} ?>
Suggest an easy way to use html tags in php code, other than using a template system, Also tell me how to use for, foreach loop, if else, along with html,CSS tags