An Overview of URL:
The URL full form is Uniform Resource Locator, A URL is nothing more than the Web address of a specific, particular resource. Theoretically, every legitimate URL leads to a different resource. These resources could be an image, a CSS file, an HTML page, etc. In actuality, there are a few exceptions, the most frequent of which is a URL leading to a resource that has either relocated or vanished. It is the owner of the web server’s responsibility to properly maintain the resource that the URL represents as well as the Uniform Resource Locator itself because the Web server is in charge of both.
How to use URLs?
Any URL can be entered directly into the address bar of the browser to access the resource behind it. But this is just the very beginning! URL are widely used in the HTML language, which will be explained here.
- To display media such as images (with the <img> element), videos (with the video> element), sounds and music (with the <audio> element), etc.;
- To create links to other documents with the <a> element;
- To link a document with its related resources through various elements such as <link> or <script>;
- To display other HTML documents with the <iframe> element.
Absolute URLs vs Relative URLs:
The URL full form is Uniform Resource Locator. Although it uses the phrases absolute URL string and relative URL string to differentiate them from URL objects, the URL standard defines both (which are in-memory representations of URLs). In the context of URLs, let’s explore what the difference between absolute and relative entails. The necessary components of a URL mostly depend on the context in which it is used. A URL must be provided as a full (or absolute) URL because a URL in your browser’s address bar lacks context.