sha0001 / adventures

HTML and CSS learning
1 stars 1 forks source link

Investigate centralised navigation elements #19

Open sha0001 opened 4 years ago

sha0001 commented 4 years ago

Can the navigation bar be pulled from an external source, rather than embedded directly in the html of the page? This will allow for easy duplication, as well as managing changes, rather than having to update each HTML page individually.

sha0001 commented 4 years ago

iframes seem to be an option.

See https://stackoverflow.com/questions/7055024/how-to-store-nav-bar-in-one-file?noredirect=1&lq=1

However may need to investigate what impact this might have on SEO (google searching).

sha0001 commented 4 years ago

Interestingly the W3Schools site seems to write it on each page... what a nightmare! I guess you could potentially create some way of automating the changes, but for only a handful of pages it might be easiest to just update manually and copy/paste.