I am having a .php file with the following code. While I am changing the extension of the file as .html then also it is behaving in the same way. C
.php
.html
PhP is server side.
HTML is client side.
Plus, on the web, filetypes mean nothing. They are overridden by the !DOCTYPE declaration.