'Why is this line of code causing an error in HTML validator? [closed]

I'm writing a website that needs to be W3C compliant. Everything is validated correctly until I use PHP tags. This line of code specifically: <?php include 'menu.html'; ?> The error given is:

Saw <?. Probable cause: Attempt to use an XML processing instruction in HTML. (XML processing instructions are not supported in HTML.)

How can this be fixed?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source