Currently, I have several pages embedded in one html file, and a navigation bar at the bottom of each page to go to another page.
However, navbars on different pages are identical to codes in different positions. Therefore, editing a small part in the navigation bar means that I need to change the (same) code in all of these positions. Moreover, the navigation button illumination does not work correctly if I implement it this way.
In fact, the code for navbar is the same - they are all inside the identical div tag. Therefore, I think there must be some way to reuse one code for all of these navigators? So I donβt need to edit the code again and again every time I change some details in the navigation bar? (It would be a disaster if I had 10 pages or more)
source
share