Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
xhtml_1.1_template [2009/11/20 15:00]
Joel Dare
xhtml_1.1_template [2020/06/01 22:53] (current)
Line 1: Line 1:
 +====== XHTML 1.1 Template ======
 +
 +This is a minimalist template for an XHTML 1.1 document. ​ I use this as a starting point for many of my own web projects that are started from scratch.
 +
 +<code html>
 +<​!DOCTYPE html PUBLIC "​-//​W3C//​DTD XHTML 1.1//​EN"​ "​http://​www.w3.org/​TR/​xhtml11/​DTD/​xhtml11.dtd">​
 +
 +<​head>​
 +
 + <​title>​[Title]</​title>​
 +
 + <!-- Meta Tags -->
 + <meta http-equiv="​content-type"​ content="​application/​xhtml+xml;​ charset=utf-8"​ />
 + <meta name="​robots"​ content="​index,​ follow"​ />
 + <meta name="​description"​ content="​A blank XHTML 1.1 document template."​ />
 + <meta name="​keywords"​ content="​html,​xhtml,​template"​ />
 + <meta name="​author"​ content="​Joel Dare" />
 +
 +
 + <!-- JavaScript : Embedded -->
 + <script type="​text/​javascript">​
 + <!--
 + // On document load
 + document.onload = setTimeout("​rollUp();",​ 100);
 +
 + // Roll the URL up
 + function rollUp() {
 + window.scrollTo(0,​ 1);
 + }
 + //-->
 + </​script>​
 +
 + <!-- CSS -->
 + <style type="​text/​css">​
 + <!--
 +
 + body { background-color:​ white; margin: 0; padding: 0; font-family:​ sans-serif; font-size: 12px; }
 + p { margin-bottom:​ 10px; }
 +
 + -->
 + </​style>​
 +
 +</​head>​
 +
 +<​body>​
 +
 + <​p>​Hello World!</​p>​
 +
 +</​body>​
 +
 +</​html>​
 +</​code>​
  
comments powered by Disqus