Posted By

Jdub7 on 02/25/09


Tagged

css test page layout sample


Versions (?)

Who likes this?

21 people have marked this snippet as a favorite

jfherring
Hirmine
jitendraweb
Keef
GaGa
vali29
esritter
jmiller
Pixxell
cesgra
bigevilbrain
unibox
ljayz
Jdub7
heretoburma
wearefreya
dajocko
banjomamo
wirenaught
monodesigns
EkTrOn


CSS Test Page


 / Published in: XHTML
 

Use this to test your CSS markup.

  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
  2. "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  4. <!-- BEGIN HEAD -->
  5. <title>Sample Page</title>
  6. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  7. <link rel="Shortcut Icon" href="./favicon.ico" type="image/x-icon" />
  8.  
  9. <link rel="stylesheet" href="./css/style.css" type="text/css" media="screen,handheld" />
  10. <!--[if IE]><link rel="stylesheet" href="./css/ie.css" type="text/css" media="all" /><![endif]-->
  11. <!--[if IE 6]><link rel="stylesheet" href="./css/ie6.css" type="text/css" media="all" /><![endif]-->
  12. <script type="text/javascript" src="./libs/js/jquery-1.3.1.min.js"></script>
  13. </head>
  14. <body id="index">
  15. <div id="container">
  16. <div id="header">
  17. <h1>Sample page</h1>
  18. <h2>Test Your CSS</h2>
  19. </div>
  20. <div id="navigation">
  21. <ul>
  22. <li>
  23. <a href="#" title="" class="active">Link</a>
  24. </li>
  25. <li>
  26. <a href="#" title="">Link</a>
  27. </li>
  28. <li>
  29. <a href="#" title="">Link</a>
  30. </li>
  31. <li>
  32. <a href="#" title="">Link</a>
  33. </li>
  34. <li id="logout">
  35. <a href="./logout" title="">Logout</a>
  36. </li>
  37. </ul>
  38. </div>
  39. <div id="main">
  40. <div id="messages">
  41. <p class="notice">This is a notice message</p>
  42. <p class="warning">This is a warning message</p>
  43. <p class="error">This is an error message</p>
  44. </div>
  45. <div id="content">
  46. <div id="sample-page">
  47. <div id="anchor-samples">
  48. <ul>
  49. <li><a href="#headers-samples">Headers</a></li>
  50. <li><a href="#text-samples">Text</a></li>
  51. <li><a href="#list-samples">List</a></li>
  52. <li><a href="#table-samples">Table</a></li>
  53. <li><a href="#form-samples">Form</a></li>
  54. </ul>
  55. </div>
  56. <div id="headers-samples">
  57. <h1>Header 1</h1>
  58. <p>This is a paragraph after a Level 1 Header.</p>
  59. <h2>Header 2</h2>
  60. <p>This is a paragraph after a Level 2 Header.</p>
  61. <h3>Header 3</h3>
  62. <p>This is a paragraph after a Level 3 Header.</p>
  63. <h4>Header 4</h4>
  64. <p>This is a paragraph after a Level 4 Header.</p>
  65. <h5>Header 5</h5>
  66. <p>This is a paragraph after a Level 5 Header.</p>
  67. <h6>Header 6</h6>
  68. <p>This is a paragraph after a Level 6 Header.</p>
  69. </div>
  70. <hr />
  71. <div id="text-samples">
  72. <p>This is just really long paragraph with some Lorem Ipsum Text.Sed scelerisque sagittis lorem. Phasellus sodales. Nulla urna justo, vehicula in, suscipit nec, molestie sed, tellus. Quisque justo. Nam libero leo, elementum in, dapibus a, suscipit vitae, purus. Duis arcu. Integer dignissim fermentum enim. Morbi convallis felis vel nibh. Etiam viverra augue non enim.</p>
  73. <blockquote><p>This is a paragraph inside of a blockquote</p></blockquote>
  74. <address>Address: 1 Simple Way</address>
  75. <p>This paragraph uses <span>valid</span> <abbr title="eXtensible Hypertext Markup Language">XHTML</abbr>. <strong>Strong markup</strong> is used along with <em>Emphasis on this text</em></p>
  76. <pre>Preformatted markup can have a lot of spaces!</pre>
  77. </div>
  78. <hr />
  79. <div id="list-samples">
  80. <ul>
  81. <li>Unordered list 01</li>
  82. <li>Unordered list 02</li>
  83. <li>Unordered list 03
  84. <ul>
  85. <li>Unordered list inside list level 2</li>
  86. <li>Unordered list inside list level 2
  87. <ul>
  88. <li>Unordered list inside list level 3</li>
  89. <li>Unordered list inside list level 3</li>
  90. </ul>
  91. </li>
  92. </ul>
  93. </li>
  94. </ul>
  95. <ol>
  96. <li>Ordered list 01</li>
  97. <li>Ordered list 02</li>
  98. <li>Ordered list 03
  99. <ol>
  100. <li>Ordered list inside list level 2</li>
  101. <li>Ordered list inside list level 2
  102. <ol>
  103. <li>Ordered list inside list level 3</li>
  104. <li>Ordered list inside list level 3</li>
  105. </ol>
  106. </li>
  107. </ol>
  108. </li>
  109. </ol>
  110. <dl>
  111. <dt>Description list title 01</dt>
  112. <dd>Description list description 01</dd>
  113. <dt>Description list title 02</dt>
  114. <dd>Description list description 02</dd>
  115. <dd>Description list description 03</dd>
  116. </dl>
  117. </div>
  118. <hr />
  119. <div id="table-samples">
  120. <table summary="This is a sample table">
  121. <caption>Sample Table</caption>
  122. <col class="this" />
  123. <col class="that" />
  124. <col class="this" />
  125. <col class="that" />
  126. <col class="this" />
  127. <col class="that" />
  128. <tr>
  129. <th>First</th>
  130. <th>Second</th>
  131. <th>Third</th>
  132. <th>Fourth</th>
  133. <th>Fifth</th>
  134. <th>Sixth</th>
  135. </tr>
  136. </thead>
  137. <tr>
  138. <th>First</th>
  139. <th>Second</th>
  140. <th>Third</th>
  141. <th>Fourth</th>
  142. <th>Fifth</th>
  143. <th>Sixth</th>
  144. </tr>
  145. </tfoot>
  146. <tr class="odd">
  147. <td>Row 1 Column 1</td>
  148. <td>Row 1 Column 2</td>
  149. <td>Row 1 Column 3</td>
  150. <td>Row 1 Column 4</td>
  151. <td>Row 1 Column 5</td>
  152. <td>Row 1 Column 6</td>
  153. </tr>
  154. <tr class="even">
  155. <td>Row 2 Column 1</td>
  156. <td>Row 2 Column 2</td>
  157. <td>Row 2 Column 3</td>
  158. <td>Row 2 Column 4</td>
  159. <td>Row 2 Column 5</td>
  160. <td>Row 2 Column 6</td>
  161. </tr>
  162. <tr class="odd">
  163. <td>Row 3 Column 1</td>
  164. <td>Row 3 Column 2</td>
  165. <td>Row 3 Column 3</td>
  166. <td>Row 3 Column 4</td>
  167. <td>Row 3 Column 5</td>
  168. <td>Row 3 Column 6</td>
  169. </tr>
  170. <tr class="even">
  171. <td>Row 4 Column 1</td>
  172. <td>Row 4 Column 2</td>
  173. <td>Row 4 Column 3</td>
  174. <td>Row 4 Column 4</td>
  175. <td>Row 4 Column 5</td>
  176. <td>Row 4 Column 6</td>
  177. </tr>
  178. <tr class="odd">
  179. <td>Row 5 Column 1</td>
  180. <td>Row 5 Column 2</td>
  181. <td>Row 5 Column 3</td>
  182. <td>Row 5 Column 4</td>
  183. <td>Row 5 Column 5</td>
  184. <td>Row 5 Column 6</td>
  185. </tr>
  186. <tr class="even">
  187. <td>Row 6 Column 1</td>
  188. <td>Row 6 Column 2</td>
  189. <td>Row 6 Column 3</td>
  190. <td>Row 6 Column 4</td>
  191. <td>Row 6 Column 5</td>
  192. <td>Row 6 Column 6</td>
  193. </tr>
  194. </tbody>
  195. </table>
  196. </div>
  197. <hr />
  198. <div id="form-samples">
  199. <form method="post" action="./">
  200. <legend>Legend</legend>
  201. <p>
  202. <label for="text-input">Text Input</label>
  203. <input id="text-input" name="text-input" type="text" value="Text Input" />
  204. </p>
  205. <p>
  206. <label for="password-input">Password Input</label>
  207. <input id="password-input" name="password-input" type="password" value="Password Input" />
  208. </p>
  209. <p>
  210. <label for="radio1-input">Radio 1 Input</label>
  211. <input id="radio1-input" name="radio-input" type="radio" value="1" />
  212. <label for="radio2-input">Radio 2 Input</label>
  213. <input id="radio2-input" name="radio-input" type="radio" value="2" />
  214. </p>
  215. <p>
  216. <label for="checkbox1-input">checkbox 1 Input</label>
  217. <input id="checkbox1-input" name="checkbox1-input" type="checkbox" value="1" />
  218. <label for="checkbox2-input">checkbox 2 Input</label>
  219. <input id="checkbox2-input" name="checkbox2-input" type="checkbox" value="2" />
  220. </p>
  221. <p>
  222. <label for="select-input">Select Box</label>
  223. <select id="select-input" name="select-input">
  224. <optgroup label="1 thru 3">
  225. <option value="1">Option 1</option>
  226. <option value="2">Option 2</option>
  227. <option value="3">Option 3</option>
  228. <option value="4">Option 4</option>
  229. <option value="5">Option 5</option>
  230. <option value="6">Option 6</option>
  231. </select>
  232. </p>
  233. <p>
  234. <label for="textarea-input">Textarea Input</label>
  235. <textarea id="textarea-input" name="textarea-input" rows="20" cols="40">This is a textarea.</textarea>
  236. </p>
  237. <input type="submit" />
  238. <input type="reset" />
  239. </form>
  240. </div>
  241. </div>
  242. </div>
  243. </div>
  244. <div id="footer">
  245. <p>Copyright &copy; 2001-2009 One Good Company</p>
  246. </div>
  247. </div>
  248. </body>
  249. </html>

Report this snippet  

Comments

RSS Icon Subscribe to comments
Posted By: Jdub7 on August 2, 2009

Updated: Corrected some XHTML strict validation bugs.

Posted By: cesgra on October 26, 2009

Line 50 has no closing tag for

  • .

  • You need to login to post a comment.