Let's say I have 3 files:
- index.php - the main file. It has declaration.
- sources.php - a file that has html code that fetches jquery, bootstrap etc that I'll include in the main (index.php) file. It also has declaration.
- header.php - a file that has html code that creates the header for the multiple webpages. It will also be included in the main (index.php) file. It also has declaration.
My question is, are the doctype declarations necessary in the sources.php and header.php files?
The code works perfectly fine with them. But, if I only did the declaration in the index file then included the other sources.php file in the head and the header.php right after the opening body tag would it affect my project negatively? Do I really need to have the declaration thrice?
P.S. I know I could just try it by myself but I'm not on my computer and won't be for the next couple of days and I don't want to start installing things on someone else's computer. Anyway, thank you in advance..