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.
I didn’t try anything as I am still learning.
Rim is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.