Posted By

masaya on 01/14/07


Tagged

css template html xhtml


Versions (?)

Who likes this?

3 people have marked this snippet as a favorite

basicmagic
1976dan
oamaxa


XHTML basic template (ja/utf-8)


 / Published in: HTML
 

URL: http://masaya-sugawara.com/

各種CSSファイル(master.css, base.css, content.css, hack.css)と合わせて参考にどうぞ. 文字サイズを変更してもレイアウトを保ちます(フッター箇所の3カラム除く). また, メインエリアの画像は文字サイズの拡大縮小に応じてリサイズするようにしてあります.

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  3. "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  4. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ja" lang="ja" dir="ltr">
  5. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  6. <meta http-equiv="Content-Language" content="ja" />
  7. <meta http-equiv="Content-Style-Type" content="text/css" />
  8. <meta http-equiv="Content-Script-Type" content="text/javascript" />
  9. <meta http-equiv="pragma" content="no-cache" />
  10. <meta http-equiv="cache-control" content="no-cache" />
  11. <meta http-equiv="expires" content="0" />
  12. <meta http-equiv="imagetoolbar" content="false" />
  13.  
  14. <title>XHTML basic template</title>
  15.  
  16. <meta name="robots" content="FOLLOW" />
  17. <meta name="googlebot" content="index,follow" />
  18. <meta name="description" content="" />
  19. <meta name="keywords" content="" />
  20. <meta name="copyright" content="" />
  21. <meta name="MSSmartTagsPreventParsing" content="true" />
  22. <meta name="author" content="" />
  23.  
  24. <link rel="start" href="" title="" />
  25. <link rel="shortcut icon" href="favicon.ico" />
  26. <link rel="icon" type="image/png" href="favicon.png" />
  27. <link rel="stylesheet" type="text/css" media="screen,projection" href="c/master.css" charset="UTF-8" />
  28.  
  29. <script type="text/javascript" src="j/common.js" charset="UTF-8"></script>
  30. </head>
  31. <div id="warning">
  32. <h2>当サイトを正しく表示するには JavaScript が必要です. 設定をオンにしてからページをロードし直してください.</h2>
  33. </div>
  34. <!-- head -->
  35. <div id="head">
  36. <!-- Container -->
  37. <div class="Container">
  38. <h1><a href="/" title="XHTML basic template">XHTML basic template</a></h1>
  39. <p>made by <a href="http://masaya-sugawara.com" title="masaya-sugawara.com">masaya-sugawara.com</a></p>
  40. </div>
  41. <!-- / Container -->
  42. </div>
  43. <!-- / head -->
  44.  
  45. <hr />
  46.  
  47. <!-- nav -->
  48. <div id="nav">
  49. <!-- Container -->
  50. <div class="Container">
  51. <ul>
  52. <li><a href="/" title="Menu">Menu</a></li>
  53. <li><a href="/" title="Menu">Menu</a></li>
  54. <li><a href="/" title="Menu">Menu</a></li>
  55. <li><a href="/" title="Menu">Menu</a></li>
  56. <li><a href="/" title="Menu">Menu</a></li>
  57. <li><a href="/" title="Menu">Menu</a></li>
  58. </ul>
  59. </div>
  60. <!-- / Container -->
  61. </div>
  62. <!-- / nav -->
  63.  
  64. <hr />
  65.  
  66. <!-- content -->
  67. <div id="content">
  68. <!-- Container -->
  69. <div class="Container">
  70. <!-- main -->
  71. <div id="main">
  72. <!-- Container -->
  73. <div id="sample1" class="Container">
  74. <h2>Main Title</h2>
  75. <p><a href="http://www.flickr.com/photos/97799173@N00/337290746/" title=""><img src="http://farm1.static.flickr.com/154/337290746_b24ece3425_o.jpg" width="" height="" alt="" /></a><br />
  76. Text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text. Text text text text text text text text text.</p>
  77. <h3>Sub Title</h3>
  78. <p>Text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text.</p>
  79. <p>Text text text text text text text. Text text text text text text text text text text text text .</p>
  80. </div>
  81. <!-- / Container -->
  82.  
  83. <hr />
  84.  
  85. <!-- Container -->
  86. <div id="sample2" class="Container">
  87. <h6>h6—XHTML basic template</h6>
  88. <h5>h5—XHTML basic template</h5>
  89. <h4>h4—XHTML basic template</h4>
  90. <h3>h3—XHTML basic template</h3>
  91. <h2>h2—XHTML basic template</h2>
  92. <h1>h1—XHTML basic template</h1>
  93. <h1>h1—XHTML basic template</h1>
  94. <h2>h2—XHTML basic template</h2>
  95. <h3>h3—XHTML basic template</h3>
  96. <h4>h4—XHTML basic template</h4>
  97. <h5>h5—XHTML basic template</h5>
  98. <h6>h6—XHTML basic template</h6>
  99. </div>
  100. <!-- / Container -->
  101. </div>
  102. <!-- / main -->
  103.  
  104. <hr />
  105.  
  106. <!-- sub -->
  107. <div id="sub">
  108. <!-- Container -->
  109. <div class="Container">
  110. <h4>Sub Title</h4>
  111. <ul>
  112. <li><a href="/" title="Link Text">Link Text</a></li>
  113. <li><a href="/" title="Link Text">Link Text</a></li>
  114. <li><a href="/" title="Link Text">Link Text</a></li>
  115. <li><a href="/" title="Link Text">Link Text</a></li>
  116. <li><a href="/" title="Link Text">Link Text</a></li>
  117. </ul>
  118. </div>
  119. <!-- / Container -->
  120.  
  121. <!-- Container -->
  122. <div class="Container">
  123. <h4>Sub Title</h4>
  124. <ul>
  125. <li><a href="/" title="Link Text">Link Text</a></li>
  126. <li><a href="/" title="Link Text">Link Text</a></li>
  127. <li><a href="/" title="Link Text">Link Text</a></li>
  128. </ul>
  129. </div>
  130. <!-- / Container -->
  131.  
  132. <!-- Container -->
  133. <div class="Container">
  134. <h4>Sub Title</h4>
  135. <p>Text text text text text text text text text text text text text text text text text text text text. Text text text text text text text text text text.</p>
  136. </div>
  137. <!-- / Container -->
  138. </div>
  139. <!-- / sub -->
  140. </div>
  141. <!-- / Container -->
  142. </div>
  143. <!-- / content -->
  144.  
  145. <hr />
  146.  
  147. <!-- extra -->
  148. <div id="extra">
  149. <!-- Container -->
  150. <div class="Container">
  151. <!-- e1 -->
  152. <div id="e1">
  153. <h5>Extra Title</h5>
  154. <p>Text text text text text text text text text text text text text text text. Text text text text text text text text text text text text text text text.</p>
  155. </div>
  156. <!-- / e1 -->
  157.  
  158. <!-- e2 -->
  159. <div id="e2">
  160. <h5>Extra Title</h5>
  161. <p>Text text text text text text text text text text text text text text text. Text text text text text text text text text text text text text text text.</p>
  162. </div>
  163. <!-- / e2 -->
  164.  
  165. <!-- e3 -->
  166. <div id="e3">
  167. <h5>Extra Title</h5>
  168. <p>Text text text text text text text text text text text text text text text. Text text text text text text text text text text text text text text text.</p>
  169. </div>
  170. <!-- / e3 -->
  171. </div>
  172. <!-- / Container -->
  173. </div>
  174. <!-- / extra -->
  175.  
  176. <hr />
  177.  
  178. <!-- foot -->
  179. <div id="foot">
  180. <!-- Container -->
  181. <div class="Container">
  182. <p>
  183. <!--Creative Commons License--><a rel="license" href="http://creativecommons.org/licenses/by/2.1/jp/"><img alt="Creative Commons License" style="border-width: 0" src="http://i.creativecommons.org/l/by/2.1/jp/88x31.png"/></a><br/>This work is licensed under a <a rel="license" href="http://creativecommons.org/licenses/by/2.1/jp/">Creative Commons Attribution 2.1 Japan License</a>.<!--/Creative Commons License--><!-- <rdf:RDF xmlns="http://web.resource.org/cc/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#">
  184. <Work rdf:about="">
  185. <license rdf:resource="http://creativecommons.org/licenses/by/2.1/jp/" />
  186. </Work>
  187. <License rdf:about="http://creativecommons.org/licenses/by/2.1/jp/"><permits rdf:resource="http://web.resource.org/cc/Reproduction"/><permits rdf:resource="http://web.resource.org/cc/Distribution"/><requires rdf:resource="http://web.resource.org/cc/Notice"/><requires rdf:resource="http://web.resource.org/cc/Attribution"/><permits rdf:resource="http://web.resource.org/cc/DerivativeWorks"/></License></rdf:RDF> -->
  188. </p>
  189. </div>
  190. <!-- / Container -->
  191. </div>
  192. <!-- / foot -->
  193. </body>
  194. </html>

Report this snippet  

You need to login to post a comment.