Posted By

karlhorky on 12/03/10


Tagged

css test testing html xhtml tags styling example markup styles examples


Versions (?)

Who likes this?

2 people have marked this snippet as a favorite

kirkov
newbiegeek


Test webpage for all common xhtml tags


 / Published in: XHTML
 

URL: http://w3schools.com/tags/default.asp

During the template design phase of a website, I like to break down my work into identifiable phases. One of such phases that I go through is writing the markup for the website. I typically write the markup for the website before I write any css styles in order to come up with the most semantic xhtml possible. One last step that I take before finishing the markup and start applying styles is adding this snippet's test content to my content element. The test content in this snippet allows for testing of styles on all common xhtml tags, effectively simulating the appearance of any webpage on your site. As long as you have included styling for all of these major xhtml tags, elements on this page should appear as they do in your final product.

  1. <!DOCTYPE html>
  2. <html lang="en">
  3.  
  4. <head>
  5. <title> Title </title>
  6. </head>
  7.  
  8. <body>
  9. <div id="content">
  10. <div id="content-body">
  11. <h1>Content Types Examples - h1</h1>
  12. <p>
  13. Sed dignissim, neque ac malesuada eleifend, diam dolor ullamcorper nulla, et venenatis lectus justo et urna.
  14. Nulla facilisi. Suspendisse nec justo at tortor feugiat convallis. Donec quis ligula turpis. Proin posuere erat
  15. quis augue placerat non mattis nisl condimentum.
  16. </p>
  17. <h2>Paragraphs and General Formatting - h2</h2>
  18. <p>
  19. Vivamus sit amet <a href="#">link</a> tortor. Sed condimentum, <em>em (emphasis)</em>, nulla turpis tincidunt dui,
  20. non <strong>strong</strong> ut erat. Tristique felis. Nam sit amet <cite>cite (citation)</cite> viverra, metus
  21. sed cursus dignissim, <dfn>dfn (definition)</dfn> mauris, lobortis elit massa ut risus. Suspendisse semper ornare
  22. elit ac sagittis. Nunc id <del>del (deleted)</del> <ins>ins (inserted)</ins> at at ligula. In lacus dui, lacinia
  23. eget adipiscing id, <span>span</span> cursus in erat<sub>sub (subscript)</sub>. Proin<sup>sup (superscript)</sup>
  24. et massa mauris.
  25. </p>
  26. Blockquote text: Curabitur sed odio eu lacus volutpat hendrerit eu in justo. Etiam vitae orci nunc. Phasellus
  27. egestas auctor urna, tristique vestibulum elit consequat vel. Aliquam erat volutpat. Vivamus eu odio at orci
  28. dignissim dignissim ac quis diam. Sed dui nisl, laoreet vel viverra sit amet, interdum eget risus. Vivamus ut augue
  29. a eros pellentesque dapibus.
  30. <h3>Example of header - h3</h3>
  31. <p>
  32. Sed dignissim, neque ac malesuada eleifend, diam dolor ullamcorper nulla, et venenatis lectus justo et urna. Nulla
  33. facilisi.
  34. </p>
  35. <h4>Example of header - h4</h4>
  36. <p>
  37. Suspendisse sit amet nunc id sem ullamcorper porttitor.
  38. </p>
  39. <h5>Example of header - h5</h5>
  40. <p>
  41. Curabitur a rutrum dui.
  42. </p>
  43. <h6>Example of header - h6</h6>
  44. <p>
  45. Vestibulum eu erat id enim pellentesque gravida.
  46. </p>
  47. <h2>Lists and Floats - h2</h2>
  48. <p>
  49. Nulla mattis enim nec turpis volutpat convallis.
  50. </p>
  51. <div class="left">
  52. <h3>Float left - h3</h3>
  53. <ul>
  54. <li>Unordered List Item 1</li>
  55. <li>Unordered List Item 2</li>
  56. <li>
  57. <h4>Unordered List Item 3 (with Children) - h4</h4>
  58. <ul>
  59. <li>Second Level Unordered List Item 1</li>
  60. <li>Second Level Unordered List Item 2</li>
  61. </ul>
  62. </li>
  63. <li>
  64. <h4>Unordered List Item 4 (with Children) - h4</h4>
  65. <ol>
  66. <li>
  67. <h5>Second Level Ordered List Item 1 - h5</h5>
  68. <p>
  69. Proin pulvinar dui a ipsum lacinia sagittis. Curabitur sed odio eu lacus volutpat hendrerit eu in justo.
  70. Etiam vitae orci nunc. Phasellus egestas auctor urna, tristique vestibulum elit consequat vel. Aliquam
  71. erat volutpat.
  72. </p>
  73. <h6>Cont. Second Level Ordered List Item 1 - h6</h6>
  74. <p>
  75. Donec lobortis purus at erat ultricies condimentum.
  76. </p>
  77. </li>
  78. <li>Second Level Ordered List Item 2</li>
  79. </ol>
  80. </li>
  81. </ul>
  82. </div>
  83. <div class="right">
  84. <h3>Float right - h3</h3>
  85. <ol>
  86. <li>Ordered List Item 1</li>
  87. <li>Ordered List Item 2</li>
  88. <li>
  89. <h4>Ordered List Item 3 (with Children) - h4</h4>
  90. <ul>
  91. <li>Second Level Unordered List Item 1</li>
  92. <li>Second Level Unordered List Item 2</li>
  93. </ul>
  94. </li>
  95. <li>
  96. <h4>Ordered List Item 4 (with Children) - h4</h4>
  97. <ol>
  98. <li>
  99. <h5>Second Level Ordered List Item 1 - h5</h5>
  100. <p>
  101. Proin pulvinar dui a ipsum lacinia sagittis. Curabitur sed odio eu lacus volutpat hendrerit eu in justo.
  102. Etiam vitae orci nunc. Phasellus egestas auctor urna, tristique vestibulum elit consequat vel. Aliquam
  103. erat volutpat.
  104. </p>
  105. <h6>Cont. Second Level Ordered List Item 1 - h6</h6>
  106. <p>
  107. Donec lobortis purus at erat ultricies condimentum.
  108. </p>
  109. </li>
  110. <li>Second Level Ordered List Item 2</li>
  111. </ol>
  112. </li>
  113. </ol>
  114. </div>
  115. <h3>Middle content in between the floated divs. - h3</h3>
  116. <p>
  117. Suspendisse sit amet nunc id sem ullamcorper porttitor. Curabitur a rutrum dui. Vestibulum ante ipsum primis in
  118. faucibus orci luctus et ultrices posuere cubilia Curae; Aenean ipsum dolor, molestie sed ultricies eu, fermentum vitae
  119. enim. Vestibulum eu erat id enim pellentesque gravida. Mauris sed lectus velit.
  120. </p>
  121. <br class="clear" />
  122. <h3>Content after a clear element - h3</h3>
  123. <p>
  124. Ut et lorem sit amet ante pellentesque ultrices. Sed diam arcu, dapibus non molestie a, dignissim ac sapien. Fusce sed
  125. neque augue, non sagittis massa.
  126. </p>
  127. <h2>Table Example - h2</h2>
  128. <p>
  129. Nullam at dui nunc. Vestibulum ullamcorper nisl et leo iaculis porttitor iaculis erat posuere. Proin tincidunt velit in
  130. ante lobortis in suscipit elit pharetra.
  131. </p>
  132. <caption>Table Caption</caption>
  133. <tr>
  134. <th>Table Head TH</th>
  135. <th>Table Head TH</th>
  136. </tr>
  137. </thead>
  138. <tr>
  139. <td>Table Foot TD</td>
  140. <td>Table Foot TD</td>
  141. </tr>
  142. </tfoot>
  143. <tr>
  144. <td>Table Body TD</td>
  145. <td>Table Body TD</td>
  146. </tr>
  147. <tr>
  148. <td>Table Body TD</td>
  149. <td>Table Body TD</td>
  150. </tr>
  151. </tbody>
  152. </table>
  153. <h2>Form Example - h2</h2>
  154. <form>
  155. <legend>Fieldset Legend:</legend>
  156. <div class="content-body-form-row">
  157. <label for="lismod">File:</label>
  158. <input type="file" size="30" id="lismod" />
  159. </div>
  160. <div class="content-body-form-row">
  161. <label for="sceleris-lacinia">Radio1:</label>
  162. <input type="radio" name="sceleris" id="sceleris-lacinia" />
  163. <label for="sceleris-mattis">Radio2:</label>
  164. <input type="radio" name="sceleris" id="sceleris-mattis" />
  165. </div>
  166. <div class="content-body-form-row">
  167. <label for="sceleris-lacerg">Textarea:</label>
  168. <textarea name="sceleris" id="sceleris-lacerg" cols="5" rows="5">
  169. Textarea body text
  170. </div>
  171. <legend>Fieldset Legend:</legend>
  172. <div class="content-body-form-row">
  173. <label for="ligula">Text:</label>
  174. <input type="text" size="30" id="ligula" />
  175. </div>
  176. <div class="content-body-form-row">
  177. <label for="auctor">Password:</label>
  178. <input type="password" size="30" id="auctor" />
  179. </div>
  180. <div class="content-body-form-row">
  181. <label for="mattis">Checkbox:</label>
  182. <input type="checkbox" id="mattis" />
  183. </div>
  184. <div class="content-body-form-row">
  185. <label for="gestas">Select:</label>
  186. <select id="gestas">
  187. <optgroup label="Swedish Cars">
  188. <option value="volvo">Volvo</option>
  189. <option value="saab">Saab</option>
  190. <optgroup label="German Cars">
  191. <option value="mercedes">Mercedes</option>
  192. <option value="audi">Audi</option>
  193. </select>
  194. </div>
  195. <button type="submit"><span class="hide-text">Search</span></button>
  196. </form>
  197. <h2>Iframe Example - h2</h2>
  198. <iframe src="http://www.google.com/">
  199. <p>Your browser does not support iframes.</p>
  200. </iframe>
  201. <h2>Linked Image Example - h2</h2>
  202. <a href="#"><img src="http://www.google.ca/intl/en_com/images/srpr/logo1w.png" /></a>
  203. </div>
  204. </div>
  205. </body>
  206. </html>

Report this snippet  

You need to login to post a comment.