Actually i want to ask, Right now i'm trying to use XAMPP to do php stuff, I want to ask some things that is not clear for me after finished PHP course
1.why my code not executed? I tried use echo and it's works, but it doesnt work with html tag(just like codeacademy's course do)
2.if i use html tag inside php, do i need to include every single important tag from html?(doctype, title, head,body and etc).
3.based on my code, server translates the echo $name to in server side, then pass the translated tag to client side later, am i right?
//this doest work <?php $name = "james"; <table> <tr> <td>Name</td> <td><?php echo $name?></td> </tr> </table> ?> //this is works <?php $name= "james"; echo "<table>"; echo "<tr>"; echo "<td>Name</td>"; echo "<td>".$name."</td>"; echo "</tr>"; echo "</table>"; ?>