⇦ Back

WDX-180

Web Development X

Absolute vs Relative URLs

Question 1: What is a URL?


Question 2: Which of the following statements best describes an absolute URL?


Question 3: In an absolute URL like “https://www.example.com/page.html,” what does “https://” represent?


Question 4: Which scenario is most suitable for using a relative URL?


Question 5: What is the advantage of using relative URLs over absolute URLs?


Question 6: In a URL like “/images/pic.jpg,” what does the initial “/” symbol indicate?


Question 7: If you’re on the page “http://www.example.com/subfolder/page.html,” and you want to link to “http://www.example.com/otherpage.html,” which type of URL would you use?


Question 8: Which type of URL tends to break if the domain structure changes?


Question 9: When might it be necessary to use an absolute URL instead of a relative URL?


Question 10: Which type of URL typically requires more characters to represent?


Project maintained by Behsolo Hosted on GitHub Pages — Theme by mattgraham