Hi all
I'm learning some php and I'm having a problem with my code. I wrote

<?php echo "<p>Hello World!</p>";
?>

into the webpage (tried that in a .php and a .html file and it came out as

Hello World!"; ?>

in both of them.
Any ideas what I'm doing wrong? Also is it possible to have a snippet of php code within a webpage but keep the webpage with an .html extension?

Thanks