1 / 4

Uniform Resource Locators (URLs)

Uniform Resource Locators (URLs). Scheme. Port Number. Query. http://www.company.com:81/a/b/c.html?user=Alice&year=2008#p2. Host Name. Path portion. Fragment. <a> Examples. Full URL: <a href ="http://www.xyz.com/news/2009.html">2009 News</a>

emmly
Download Presentation

Uniform Resource Locators (URLs)

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Uniform Resource Locators (URLs) Scheme Port Number Query http://www.company.com:81/a/b/c.html?user=Alice&year=2008#p2 Host Name Path portion Fragment CS 142 Lecture Notes: URLs and Links

  2. <a> Examples • Full URL:<a href="http://www.xyz.com/news/2009.html">2009 News</a> • Absolute location in same site:<a href="/stock/quote.html">same ashttp://www.xyz.com/stock/quote.html • Relative location:<a href="2008/March.html">same ashttp://www.xyz.com/news/2008/March.html • Anchor definition:<a name="sec3">...</a> • New location, same page:<a href="#sec3"> CS 142 Lecture Notes: URLs and Links

  3. Other Uses of URLs • Images: <imgsrc="icon.gif" /> • Stylesheets: <link rel="stylesheet" type="text/css" href="main.css" /> • Embedded page: <iframesrc="http://www.google.com" /> CS 142 Lecture Notes: URLs and Links

  4. CS 140 Lecture Notes: File Systems

More Related