Home >> FAQs/Tutorials >> XHTML Tutorials and Tips >> Index

XHTML Tutorial - URL Starts with Path or File name

By: FYIcenter.com

(Continued from previous topic...)

What Happens If a URL Starts with Path or File name?

If a URL starts with a path name, the browser will borrow the protocol name, the host name, and the port number from the URL of the current document to make up the missing parts. For example, if the following URL is used in this document you are viewing right now:

  /faq/xhtml/index.html

your browser will borrow the protocol name, the host name, and the port number from the URL of this document, and produce the following URL:

  http://dev.fyicenter.com:80/faq/xhtml/index.html

If a URL starts with a file name, the browser will borrow the protocol name, the host name, the port number, and the path name from the URL of the current document to make up the missing parts. For example, if the following URL is used in this document you are viewing right now:

  index.html

your browser will borrow the protocol name, the host name, the port number, and the path name from the URL of this document, and produce the following URL:

  http://dev.fyicenter.com:80/faq/xhtml/index.html

(Continued on next topic...)

  1. What Are Hyper Links?
  2. What Is an Anchor "a" Tag/Element?
  3. How To Define a Hyper Link?
  4. How To Define a Bookmark?
  5. What Is a URL?
  6. What Is the Structure of a URL?
  7. What Happens If Protocol or Port Number Is Missing in a URL?
  8. What Happens If a URL Starts with Path or File name?
  9. What Is a Relative Path Name?
  10. What Happens If File Name is Missing in a URL?
  11. How To Build Hyper Link Indexes within the Same Document?
  12. What Happens If a Hyper Link Points to an Image?
  13. What Happens If a Hyper Link Points to a Music File?
  14. What Happens If a Hyper Link Points to a PDF File?
  15. What Happens If a Hyper Link Points to a ZIP File?
  16. How To Create A Link to Open a Document in a New Window?


Selected Developer Jobs:

More...