I have two HTML pages.
I would like to avoid repeating markup, like head, navigation, etc.
For example, here is one page:
<head><title>Los Pollos Hermanos</title></head>
<body>About Us</body>
And here is another:
<head><title>Los Pollos Hermanos</title></head>
<body>Contacts</body>
I don’t like to repeat things, so, I want to move the head+title part out, to some separate file, and then call this separate file from other pages. Is this the correct way? What is the practice?
It depends on the language you are using. If you want to do this strictly in HTML, see if your server supports shtml. If it does, you can use includes to read the file into another file.