Answer the question
In order to leave comments, you need to log in
How to start building a multi-page website?
Good afternoon!
Friends, I want to make several pages (10-15). What is the best way for a beginner to implement this in order to lay the right foundation for the future?
1. Make static pages for each material. (But here it confuses me that if you need to change at least one character in a repeating block, you will have to do this with all pages manually. Or is it solved through Gulp, for example?)
2. Divide into blocks and insert through php require ?
3. Trying to do it right away through some kind of framework, learning along the way?
Thank you!
Answer the question
In order to leave comments, you need to log in
First you need to create the page template itself and see how it will look in general.
includeHTML - can recursively load all the necessary parts located in different HTML files with ONE TAG or via Javascript.
(All scripts and handler scripts and CSS must be included in the template head file. In the HTML parts - only markup.)
Connect in the head section and write tags (example):
After you make the template, you can go to either pure PHP, or to any framework or CMS, and "pull" a ready-made and "CUT" AS NECESSARY layout onto this framework or CMS.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question