xpavelos Posted March 19, 2017 Share Posted March 19, 2017 Hey guys. So I have just learned the basics of HTML and CSS and I am on my way to creating my first real website. But I have this problem - I have a navigation bar with a dropdown button (which contains links to products). And when I am going to create a new html page - lets say another product (that sits inside the dropdown) I then have to update the navigation bar code on every page I have. This is not wise to do - repeating the same code, error prone, etc. Is there a proper way to write navigation bar once and have it on every page? I mean, can I embed it somehow? Or embed product pages? Thanks. Link to comment Share on other sites More sharing options...
Ingolme Posted March 19, 2017 Share Posted March 19, 2017 You need to use a server-side programming language to display the same template on all the pages. Link to comment Share on other sites More sharing options...
xpavelos Posted March 19, 2017 Author Share Posted March 19, 2017 Okay, thanks. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now