How can the "here document" syntax be used to simplify HTML output in PHP?

When outputting HTML in PHP, using echo statements for each line can be cumbersome and hard to read. One way to simplify this is by using the "here document" syntax, which allows for multi-line strings to be easily output. This can make the HTML code more readable and maintainable.

<?php
echo <<<HTML
<!DOCTYPE html>
<html>
<head>
    <title>Example Page</title>
</head>
<body>
    <h1>Hello, World!</h1>
</body>
</html>
HTML;
?>