I am learning how to program a basic website. The home page is my index.html
that follow the basic structure:
<!doctype html>
<html lang="en">
<head>
<title>Hello, world!</title>
</head>
<body>
</body>
<footer>
</footer>
</html>
Once I start to create new html files I just want to change the content of body tag keeping header and footer with the same content. Right now when I want to create a new html file I copy index.html
with another name, for example posts.html
, and change the content that I want. That hasn't been an effective way to program my website because every time when I need to make a change in index.html
it is need to repeat all the changes to the others html files.
Are there ways to expand my web-pages preserving the contents of head and footer?
I know that Django allows the programmer to use the follow structure to preserve the basic aspects of the website:
{% block content %}
{% endblock %}
Nevertheless I am not using Django. So far I am just using HTML to create my webpages.