I'm a beginner and I'm having trouble linking scripts, CSS, and images. I have the following structure in my site folders, just an example:
- Pasta Raiz
--cadastro
--- cadastro.html
--images
--- icon.png
--script
--- script.js
--style
--- cabecalho.css
index.html
Assuming all the pages in my site have the same header, then I would have to import all of the CSS cabeçalho.css
to them. For the homepage it's easy.
But to call this same css on page cadastro.html
? In my view, for cadastro.html
style cabecalho.css
does not exist, wanted to know how to link them, because it's a complete clutter to leave all your pages in the root folder.