Sign in to follow this  
Followers 0
xpavelos

Persistent navigation bar (between pages)

3 posts in this topic

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.

Share this post


Link to post
Share on other sites

You need to use a server-side programming language to display the same template on all the pages.

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0