+ 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.
6 Respostas
+ 1
This is clearly a beginner issue, so jumping g into Frameworks right off the bat might not be the best idea
+ 1
True. That's why I specified in an earlier answer, that if this is good educational purposes then ok.
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.
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.
0
With modern caching it's not necessary to do so. Use a framework. Reinventing the wheel poses all sorts of risks.
0
Ok Thankyou