{"id":749,"date":"2013-01-08T14:54:52","date_gmt":"2013-01-08T14:54:52","guid":{"rendered":"https:\/\/ibex.tech\/javascript\/?p=749"},"modified":"2022-02-17T07:14:47","modified_gmt":"2022-02-17T07:14:47","slug":"create-the-html5-template","status":"publish","type":"post","link":"https:\/\/ibex.tech\/javascript\/jquery-mobile\/starting-a-jquery-mobile-project\/create-the-html5-template","title":{"rendered":"2 &#8211; Create The HTML5 Template"},"content":{"rendered":"<h4>\nCreate A New HTML5&nbsp;File<br \/>\n<\/h4>\n<p>\nYou can create a new HTML 5 document in Dreamweaver (Page Type: HTML, DocType: HTML5) and set it up as follows:\n<\/p>\n<pre>\r\n<code>\r\n&lt;!doctype html&gt;\r\n&lt;html&gt;\r\n&lt;head&gt;\r\n&lt;meta charset=&quot;utf-8&quot;&gt;\r\n&lt;title&gt;Untitled Document&lt;\/title&gt;\r\n\r\n&lt;!----- SETUP JQUERY -----&gt;\r\n&lt;link rel=&quot;stylesheet&quot; href=&quot;http:\/\/code.jquery.com\/mobile\/1.0\/jquery.mobile-1.0.min.css&quot; \/&gt;\r\n&lt;script src=&quot;http:\/\/code.jquery.com\/jquery-1.6.4.min.js&quot;&gt;&lt;\/script&gt;\r\n&lt;script type=&quot;text\/javascript&quot; src=&quot;http:\/\/code.jquery.com\/mobile\/1.0\/jquery.mobile-1.0.min.js&quot; &gt; &lt;\/script&gt;\r\n\r\n&lt;meta name=&quot;viewport&quot; content=&quot;width=device-width, initial-scale=1, user-scalable=no&quot; &gt;\r\n\r\n&lt;\/head&gt;\r\n\r\n&lt;body&gt;\r\n\r\n&lt;\/body&gt;\r\n&lt;\/html&gt;\r\n<\/code><\/pre>\n<p>\n&nbsp;\n<\/p>\n<h4>\nUsing Dreamweaver To Create The File<br \/>\n<\/h4>\n<p>\nhowever Dreamweaver has better support by selecting &#39;File&#39; &gt; &#39;New&#39; &gt; &#39;Select Page From Sample&#39; &gt; &nbsp;&#39;Mobile Starters&#39;\n<\/p>\n<h4>\nDreamweaver Tips<br \/>\n<\/h4>\n<p>\nPreview of interface\n<\/p>\n<p style=\"margin-left: 40px;\">\nMenu &gt; View &gt; Live View\n<\/p>\n<p>\nCode syntax assistant\n<\/p>\n<p style=\"margin-left: 40px;\">\ntype &quot;data-*&quot;\n<\/p>\n<h4>\nThe Viewport<br \/>\n<\/h4>\n<p>\nThe area in which the page fits. &nbsp;A mobile friendly website shouldn&#39;t need to be zoomed in or out, at least to start with the visible area equal to the devices screen width.\n<\/p>\n<p>\n1:1 scale and with user not allowed to change the scale with gestures or buttons:\n<\/p>\n<pre>\r\n<code>\r\n&lt;meta name=&quot;viewport&quot; content=&quot;width=device-width, initial-scale=1, user-scalable=no&quot; &gt;\r\n<\/code><\/pre>\n<p>\n&nbsp;\n<\/p>\n<h4>\nThe Page<br \/>\n<\/h4>\n<p>\nA page is just a div element with a specific role. &nbsp;One HTML document can host one page or many pages inside the same file.\n<\/p>\n<h4>\nRoles<br \/>\n<\/h4>\n<p>\nRoles define what the framework should do with tags such as div tags that are used. &nbsp;E.g.\n<\/p>\n<pre>\r\n<code>\r\n&lt;div data-role=&quot;page&quot;&gt;\r\n<\/code><\/pre>\n<p>\nNote that roles are not part of HTML5, they are part of the jQuery Mobile framework.\n<\/p>\n<p>\n&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Create A New HTML5&nbsp;File You can create a new HTML 5 document in Dreamweaver (Page Type: HTML, DocType: HTML5) and set it up as follows: &lt;!doctype html&gt; &lt;html&gt; &lt;head&gt; &lt;meta charset=&quot;utf-8&quot;&gt; &lt;title&gt;Untitled Document&lt;\/title&gt; &lt;!&#8212;&#8211; SETUP JQUERY &#8212;&#8211;&gt; &lt;link rel=&quot;stylesheet&quot; href=&quot;http:\/\/code.jquery.com\/mobile\/1.0\/jquery.mobile-1.0.min.css&quot; \/&gt; &lt;script src=&quot;http:\/\/code.jquery.com\/jquery-1.6.4.min.js&quot;&gt;&lt;\/script&gt; &lt;script type=&quot;text\/javascript&quot; src=&quot;http:\/\/code.jquery.com\/mobile\/1.0\/jquery.mobile-1.0.min.js&quot; &gt; &lt;\/script&gt; &lt;meta name=&quot;viewport&quot; content=&quot;width=device-width, initial-scale=1, user-scalable=no&quot; &gt; &lt;\/head&gt; [&hellip;]<\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[82],"tags":[],"class_list":["post-749","post","type-post","status-publish","format-standard","hentry","category-starting-a-jquery-mobile-project"],"_links":{"self":[{"href":"https:\/\/ibex.tech\/javascript\/wp-json\/wp\/v2\/posts\/749","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ibex.tech\/javascript\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ibex.tech\/javascript\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ibex.tech\/javascript\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/ibex.tech\/javascript\/wp-json\/wp\/v2\/comments?post=749"}],"version-history":[{"count":10,"href":"https:\/\/ibex.tech\/javascript\/wp-json\/wp\/v2\/posts\/749\/revisions"}],"predecessor-version":[{"id":1388,"href":"https:\/\/ibex.tech\/javascript\/wp-json\/wp\/v2\/posts\/749\/revisions\/1388"}],"wp:attachment":[{"href":"https:\/\/ibex.tech\/javascript\/wp-json\/wp\/v2\/media?parent=749"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ibex.tech\/javascript\/wp-json\/wp\/v2\/categories?post=749"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ibex.tech\/javascript\/wp-json\/wp\/v2\/tags?post=749"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}