# Why the triple slash URI notation in Windows Store HTML apps?

DevFeed: [Why the triple slash URI notation in Windows Store HTML apps?](<https://devfeed.tech/articles/why-the-triple-slash-uri-notation-in-windows-store-html-apps-41558.md>)

Original publisher: [Read original article](<http://www.adamtuliper.com/2013/10/why-triple-slash-uri-notation-in.html>)

Author: Adam Tuliper (noreply@blogger.com)

Published: 2013-10-01T19:24:00Z

Content type: tutorial

Language: en

Sources: [Adam Tuliper](<https://devfeed.tech/sources/adam-tuliper.md>)

Topics: [Windows](<https://devfeed.tech/topics/windows.md>), [App](<https://devfeed.tech/topics/app.md>), [browser](<https://devfeed.tech/topics/browser.md>), [HTML](<https://devfeed.tech/topics/html.md>)

Tags: [app](<https://devfeed.tech/tags/app.md>), [browser](<https://devfeed.tech/tags/browser.md>), [html](<https://devfeed.tech/tags/html.md>), [windows](<https://devfeed.tech/tags/windows.md>)

## AI overview

An explanation of triple-slash URI notation in Windows Store HTML/JS applications, including how missing URI authorities default to the current application package and how URI schemes reference application resources and shared frameworks.

## Source excerpt

If you've written anything for Windows 8 using HTML/JS you've likely noticed the format of the triple slash: Is this something strange Microsoft has decided to do to make WinJS work? Nope - this is a little known portion of URI Schemes that you've probably seen before. RFC 1738 specified this for certain already defined URI schemes, ex file:/// that you may have seen in web browsers. This basically says if the authority happens to be missing from: file://authority/path/anything.jpg then we will default to the current authority. In the case of browsers, you may have seen the triple slash reference to a local file file:///. If you haven't open a local file from your Non-IE browser (I say non-IE because IE just displays the path as we're used to seeing a file path which is a bit friendlier to the eyes) and check it out. In the case of Windows Store HTML/JS application, triple slash notation means look in your current application's package, which happens to be the current authority. If you reallllly wanted to type this all out then the above uri would be <img src="ms-appx://YourApplicationName/images/yourimage.png" /> So as you can see this is a nice shorthand to having to type in your app name every time. The URI schemes specific to Windows Store HTML/JS applications can be seen (here) along with their respective RFC links. Let's first take the case of URIs that point to resources in your project's references. This would be when you include a third party package reference to your application such as Bing Maps or Telerik components. Then we'll talk about the direct content files you have included in your application. <!--Telerik.UI references--< <link href="/Telerik.UI/css/common.css" rel="stylesheet" /> This is allowable and is the same as this syntax in the default current context. In other words when ms-appx:// is omitted, we default to the current context which could be ms-appx OR ms-appx-web if you happen to be running a page that you have loaded in the web context