Creating the HTML Page

When you create a Windows Store app, you get a default.html file in the root of your application. This is the first page that is opened when you run your app. Let’s go ahead and customize this page for our picture app (see Listing 1.1).

LISTING 1.1 Modified default.html Page

<!DOCTYPE html><html><head>    <meta charset="utf-8" />    <title>App1</title>    <!-- WinJS references -->    <link href="//Microsoft.WinJS.2.0/css/ui-dark.css" rel="stylesheet" />    <script src="//Microsoft.WinJS.2.0/js/base.js"></script>    <script src="//Microsoft.WinJS.2.0/js/ui.js"></script>    <!-- App1 references -->    <link href="/css/default.css" rel="stylesheet" />    <script src="/js/default.js"></script ...

Get Windows® 8.1 Apps with HTML5 and JavaScript Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.