Ok I want to know how I can make it so instead of gonig to each of my web pages and typing the code for the navbar and template how I can make some file on the site,write the code on there and then src it onto my other pages,can I,and if I can how do I do this?

I know it can be done with css but can it be done with html?