Problem Statement
Which of the following is an absolute URL?
Explanation
An absolute URL is a complete web address that includes the protocol, domain name, and path to the resource. In this case, https colon slash slash www dot example dot com slash page dot html is an absolute URL. It includes the protocol which is https, the domain which is www dot example dot com, and the path which is slash page dot html. Absolute URLs work from anywhere on the internet because they contain the full address. They are used when linking to external websites or when you want to ensure the link works regardless of the current page location. The other options are relative URLs, which are paths relative to the current page or website root.
Code Solution
SolutionRead Only
<!-- Absolute URLs --> <a href="https://www.google.com">Google</a> <a href="https://example.com/about.html">About</a> <a href="http://website.org/page">External Site</a> <!-- Relative URLs --> <a href="contact.html">Contact</a> <a href="/images/photo.jpg">Photo</a> <a href="../index.html">Home</a>
