{"id":119,"date":"2009-12-09T09:37:31","date_gmt":"2009-12-09T09:37:31","guid":{"rendered":"http:\/\/blog.soton.ac.uk\/webteam\/?p=119"},"modified":"2009-12-09T09:44:36","modified_gmt":"2009-12-09T09:44:36","slug":"basic-html-page-template","status":"publish","type":"post","link":"https:\/\/blog.soton.ac.uk\/webteam\/2009\/12\/09\/basic-html-page-template\/","title":{"rendered":"Basic HTML page template"},"content":{"rendered":"<p>I&#8217;m taking a break from conference websites to confess one of my (many) bad web designer habits.<\/p>\n<p>I still hand-roll everything in vi. Which isn&#8217;t the bad habit, as most of what I do is heavily script-oriented. However last night I had to create a page in a hurry, and did my usual hand typing of<\/p>\n<pre>&lt;html&gt;&lt;head&gt;&lt;title&gt;...&lt;\/title&gt;&lt;\/head&gt;&lt;body&gt;...&lt;\/body&gt;&lt;\/html&gt;<\/pre>\n<p>which is adequate, but could be better. It also is time consuming when doing something urgent (Like a service outage page, in this case). I remembered a friend of mine used to keep a blank page template to make sure all his pages started life as valid documents.\u00a0 I think that&#8217;d be a useful habit to get into, and that this blog post may be a convenient place to keep it. I&#8217;ll update the template below if I get any good suggestions:<\/p>\n<pre><span>&lt;?xml version=\"1.0\" encoding=\"utf-8\"?&gt;<\/span>\r\n<span>&lt;!DOCTYPE html PUBLIC \"-\/\/W3C\/\/DTD XHTML 1.0 Transitional\/\/EN\"\r\n    \"http:\/\/www.w3.org\/TR\/xhtml1\/DTD\/xhtml1-transitional.dtd\"&gt;<\/span>\r\n\r\n&lt;<span>html<\/span><span> xmlns<\/span>=<span>\"http:\/\/www.w3.org\/1999\/xhtml\" <\/span><span>lang<\/span>=<span>\"en\" <\/span><span>xml:lang<\/span>=<span>\"en\"<\/span>&gt;\r\n&lt;<span>head<\/span>&gt;\r\n  &lt;<span>title<\/span>&gt;..&lt;\/<span>title<\/span>&gt;\r\n  &lt;style<span> <\/span><span>type<\/span>=<span>\"text\/css\"<\/span>&gt;\r\n    body { font-family: sans-serif; }\r\n  &lt;<span>\/style&gt;\r\n<\/span>&lt;\/head&gt;\r\n&lt;body&gt;\r\n  &lt;h1&gt;..&lt;\/h1&gt;\r\n&lt;\/body&gt;\r\n&lt;\/html&gt;<\/pre>\n<p>At this stage I&#8217;ve not put in an meta tags. I&#8217;m considering an http-equiv text\/html; charset=urf8<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;m taking a break from conference websites to confess one of my (many) bad web designer habits. I still hand-roll everything in vi. Which isn&#8217;t the bad habit, as most of what I do is heavily script-oriented. However last night I had to create a page in a hurry, and did my usual hand typing [&hellip;]<\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"ngg_post_thumbnail":0,"footnotes":""},"categories":[198,197],"tags":[],"class_list":["post-119","post","type-post","status-publish","format-standard","hentry","category-best-practice","category-templates"],"_links":{"self":[{"href":"https:\/\/blog.soton.ac.uk\/webteam\/wp-json\/wp\/v2\/posts\/119","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.soton.ac.uk\/webteam\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.soton.ac.uk\/webteam\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.soton.ac.uk\/webteam\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.soton.ac.uk\/webteam\/wp-json\/wp\/v2\/comments?post=119"}],"version-history":[{"count":6,"href":"https:\/\/blog.soton.ac.uk\/webteam\/wp-json\/wp\/v2\/posts\/119\/revisions"}],"predecessor-version":[{"id":121,"href":"https:\/\/blog.soton.ac.uk\/webteam\/wp-json\/wp\/v2\/posts\/119\/revisions\/121"}],"wp:attachment":[{"href":"https:\/\/blog.soton.ac.uk\/webteam\/wp-json\/wp\/v2\/media?parent=119"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.soton.ac.uk\/webteam\/wp-json\/wp\/v2\/categories?post=119"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.soton.ac.uk\/webteam\/wp-json\/wp\/v2\/tags?post=119"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}