Understanding Paths in Terminals and Websites

preview_player
Показать описание
This video explains how you can write accurate paths in the Terminal as well as in your HTML, CSS, and JavaScript files so they work locally as well as on Github Pages.

The github repo has had the path that starts with "/" fixed to work in the final version.
Рекомендации по теме
Комментарии
Автор

So when loading images (or other files) inside the html, is there a convention on when to use "img/puppy.webp" or "./img/puppy.webp"? Because I'm never sure which one is more _appropriate._

mkm_
Автор

I didn't understand the /img is it referring to the root of the file or the system? I have misunderstanding to this point

Mahmoud_A