0
sharing navgation menu
i dont want to write same nagavation again and again to every other page, so how can i share my nav and footer
1 Antwort
+ 6
There are several ways :
First is by using a external CSS file.
In this way what you can do is you only have to write same HTML only and then you just have to use CSS classes in them.
You can define those classes in a separate css file and can link to each of your HTML pages.
One other way is : you can use React.js JavaScript library and you can create a navigation component which is something like a html tag and then you can use that component in all you pages.