The text files that get included to make up the different pages of the site can be in the main docroot directory, in a subdirectory, or be in another 'parent' directory. These text files can be made up of any combination of J/S, PHP, HTML, or just plain old text. CSS can be used to make all this look nice..