Relative Content

Tag Archive for htmlimagesrc

The difference between a website image and a domain image in HTML

I’m currently learning HTML as a complete beginner and I didn’t understand the src attribute when it comes to the element. I know that I should use relative url (links to an image hosted within the website).
According to the lesson, if the URL begins without a slash, the image will be relative to the current page. If the URL begins with a slash, the image will be relative to the domain. But, I don’t understand the difference between an image relative to a page and an image relative to a domain.
I hope that this specifies my problem, and I apologize if it didn’t I’m new to this forum and to web development in general.