Informatics Practices
How is an absolute URL different from a relative URL ?
Internet
3 Likes
Answer
Absolute URLs | Relative URLs |
---|---|
Absolute URLs contain both the domain name and directory/page path. | Relative URLs are just with the path excluding the domain name. |
It includes the protocol (http://, https://, ftp://). | It does not include the protocol. |
Ths syntax is : protocol://domain/path . | The syntax is : path . |
It gives complete information about the file location. | It doesn't give the full information about the file location but just gives a reference of the file. |
They are used to link to resources on different domains or servers. | They are used to link to resources within the same domain or server. |
Example : http://www.edupillar.com/aboutus.aspx | Example : category/file.htm |
Answered By
1 Like