Very new to HTML/CSS. How should I go about making a navbar that is tracked globally across my pages? Like if I add an item to the list on the navbar, I’d like it to update across all pages instead of writing it in one page after another.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The only way to do that would be using a server side scripting language (like PHP). You cannot achieve that using only client side scripting (HTML and CSS).
Using PHP
includeyou can add external files, like so:The file
filename.phpwill be added to the page.