title: "DOCTYPE expected" error in windows HTML5 app while opening document
body: <p>I am creating <strong>Windows 8.1 App using Javascript and HTML5</strong> in Visual studio. so, to open a document from the site i am using .</p>
  
  <p>Here is my HTML code:</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
  &lt;head&gt;
      &lt;meta charset="utf-8" /&gt;
      &lt;title&gt;JS_BlankApp&lt;/title&gt;
      &lt;script src="/js/default.js"&gt;&lt;/script&gt;
  &lt;/head&gt;
  &lt;body class="phone"&gt;
      &lt;div&gt;
          &lt;x-ms-webview id="webview" src="http://google.com" width="300" height="300"&gt;&lt;/x-ms-webview&gt;
      &lt;/div&gt;
       &lt;div style="background-color:yellow"&gt;
          &lt;a href="#" id="OpenDocument"&gt;Click here to open the document&lt;/a&gt;
      &lt;/div&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>Here is my Javascript code:</p>
  
  <pre><code>(function () {
      "use strict";
      var app = WinJS.Application;
      var activation = Windows.ApplicationModel.Activation;
  
      app.onactivated = function (args) {
          if (args.detail.kind === activation.ActivationKind.launch) {
              if (args.detail.previousExecutionState !== activation.ApplicationExecutionState.terminated) {
  
                  $(document).ready(function () {
                      $("#OpenDocument").click(function () {
                          //$("webview").attr("src", m");
                          webview.navigate("https://docs.oracle.com/cd/E13226_01/workshop/docs81/pdf/files/workshop/JavaKeywordReference.pdf")
                      });
                  });
  
              } else {
              }
              args.setPromise(WinJS.UI.processAll());
          }
      };
  
      app.oncheckpoint = function (args) {
  
      };
      app.start();
  })();
  </code></pre>
  
  <p>The issue is when i click on "OpenDocument" link i get the following error in my console window:</p>
  
  <blockquote>
    <p>HTML1527: DOCTYPE expected. Consider adding a valid HTML5 doctype:
    "".</p>
  </blockquote>
  
  <p>Can some one suggest me what's wrong i am doing.?</p>