Say I had a page with no visible content, just a PHP code, meant for a particular PHP task. Should I still give that page a DOCTYPE, META tags, HTML tags, etc.? Or, is it OK if the page contained just the PHP code?
if you are writing a back end file such as a class file or a function file that only contains variables, functions etc.. then no but if its a file like index.php where the file will be visable to web users then yes, basically the files that you are letting your users go to should contain html and meta data.. hope this helps
I know that, dude. I meant pages that will not be seen, which you also answered. Thanks! I've added reputation points to your account.