The code you posted should display this in the source or in a file.:
Hello World
if you want to serve XHTML or XML documents, do like this
If you want it to display like that in the browser output, use HTML
echo "Hello World <p />if you want to serve XHTML or XML documents, do like this. <br />";