I am writing my index.php and header.php etc. files for the first time, but when I go to preview my website, the comments are appearing in the body of the webpage. My code looks like this:
/*
This is the header of all your HTML code. It is only done once for your entire website.
You can think of this as the prologue to a book.
*/
// TELLS HTML HOW TO INTERPRET YOUR CODE
// - Use "strict" over "transitional" for better website efficiency and performance
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
Since this is PHP, I am using /* */ and // to make comments. However, I noticed that the HTML comments <!-- --> do not appear.
Why are my PHP comments not working correctly? I've looked at other templates, and they all use the same coding symbols that I use.