Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p><strong>Absolute Path URLs</strong></p> <p>Absolute paths are called that because they refer to the very specific location, including the domain name. The absolute path to a Web element is also often referred to as the URL. For example, the absolute path to this Web page is: </p> <p><a href="https://stackoverflow.com/questions/10962730/what-is-the-correct-way-to-specify-relative-paths-in-css/10962788#10962788">What is the correct way to specify relative paths in streamed CSS?</a></p> <p>You typically use the absolute path with the domain to point to Web elements that are on another domain than your own. For example, if I want to link to google it would be <a href="http://www.google.com" rel="nofollow noreferrer"> ...</a></p> <p>If you're referring to a Web element that is on the same domain that you're on, you don't need to use the domain name in the path of your link. Simply leave off the domain, but be sure to include the first slash (/) after the domain name.</p> <p>It is a good idea to use absolute paths, without the domain name, on most Web sites. This format insures that the link or image will be usable no matter where you place the page. This may seem like a silly reason to use longer links, but if you share code across multiple pages and directories on your site, using absolute paths will speed up your maintenance.</p> <p><strong>Relative Path URLS</strong></p> <p>Relative paths change depending upon what page the links are located on. There are several rules to creating a link using the relative path:</p> <ul> <li>links in the same directory as the page have no path information listed filename</li> <li>sub-directories are listed without any preceding slashes weekly/filename</li> <li>links up one directory are listed as ../filename</li> </ul> <p>How to determine the relative path:</p> <ol> <li>Determine the location of the page you are editing. This article is located in the/library/weekly folder on my site.</li> <li>Determine the location of the page or image you want to link to. The Beginner's Resource Center is located here: /library/beginning/</li> <li>Compare the locations and to decide how to point to it From this article, I would need to step up one directory (to/library) and then go back down to the beginning directory</li> <li>Write the link using the rules listed above: ...</li> </ol>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload