1. Absolute URL - Links to an external image that is hosted on another website. Example: src="https://www.needspot.com/images/smily.png"..

Syntax:

ab-path

2. Relative URL - Links to an image that is hosted within the website. Here, the URL does not include the domain name. If the URL begins without a slash, it will be relative to the current page. Example: src="img_girl.jpg". If the URL begins with a slash, it will be relative to the domain. Example: src="/images/img_girl.jpg".

Syntax:

rel-path