4
I am a beginner and I am facing problems with linking scripts, CSS and images. I have the following structure in folders of my site, just an example:
- Pasta Raiz
--cadastro
--- cadastro.html
--images
--- icon.png
--script
--- script.js
--style
--- cabecalho.css
index.html
Assuming all the pages on my site have the same header, then I would have to import all of them CSS cabeçalho.css. For the home page is easy.
But to call this same css on the page cadastro.html? In my view, for the cadastro.html the style cabecalho.css does not exist, wanted to know how to link them, because it is a complete mess leave all your pages in the root folder.
Tip: Seeing someone else’s page source code is essential for learning web programming (every browser has this functionality).
– brasofilo