我的代码在PHP中运行HTML有什么问题?

I have been trying to learn PHP using a book (PHP for Absolute Beginners). I have entered the code exactly as shown in the book but it doesn't work. I am running it through XAMPP and my code up until now has been working. I was wondering if anyone can tell me what is wrong with the code below?

<?php
error_reporting( E_ALL );
ini_set( "display_errors", 1 );
$title="Test title";
$content="<h1>Hello World</h1>";
$page="
<!DOCTYPE html>
<html>
<head>
<title>$title</title>
<meta http-equiv='Content-Type'content='text/html;charset=utf-8/>
</head>
<body>
$content
</body>
</html>";
echo $page;

Thanks very much

Dave

Fix the line :

<meta http-equiv='Content-Type'content='text/html;charset=utf-8/>

to

<meta http-equiv='Content-Type' content='text/html;charset=utf-8' />

or, better yet, to:

<meta charset="UTF-8">

since you're making HTML5 code.