I'm doing a simple portfolio that will not need any Framework like angled or react, which I would like and do something so I could create the separate html files and a main just by swapping the page content with JavaScript. Something like that, my index.html:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
</head>
<body>
<h1>titulo principal que vai estar em todas as paginas</h1>
<div>
div onde quero ficar alterando meus arquivos
</div>
</body>
</html>
Another file:
<div>subtitulo da pagina</div>
Another html file
<div>outro subtitulo</div>
I want to get these files to be placed inside my main html, I do not worry about importing all the css and javascript directly into my main file since it's going to be something very light, but I'd really like to make this system exchange files.