+ 1

In html and css I have a nav bar and footer, and everytime the user goes to another page i want to keep it without rewriting it.

6th Apr 2018, 3:10 AM
Comedy Co.
Comedy Co. - avatar
6 odpowiedzi
+ 1
This is clearly a beginner issue, so jumping g into Frameworks right off the bat might not be the best idea
6th Apr 2018, 3:23 AM
CHMD
CHMD - avatar
+ 1
True. That's why I specified in an earlier answer, that if this is good educational purposes then ok.
6th Apr 2018, 3:24 AM
Emma
0
You should have a template display for each page. The template shows the footer and nav bar. Only the page body changes in the template. Note, if you're creating this for educational purposes (you learning), then ok. Otherwise you should use a framework, which will implement a menu / nav bar for you etc.
6th Apr 2018, 3:17 AM
Emma
0
You can either keep the user in the same page and change the content in between in header and the footer dynamically, create a separate file for both the header and the footer and include them using JavaScript whenever needed, or, you just copy paste your code so that you don't have to rewrite it.
6th Apr 2018, 3:20 AM
CHMD
CHMD - avatar
0
With modern caching it's not necessary to do so. Use a framework. Reinventing the wheel poses all sorts of risks.
6th Apr 2018, 3:21 AM
Emma
0
Ok Thankyou
6th Apr 2018, 3:40 AM
Comedy Co.
Comedy Co. - avatar