Posted By

smoothdzion on 01/28/11


Tagged

xhtml


Versions (?)

Who likes this?

2 people have marked this snippet as a favorite

smoothdzion
newbiegeek


XHTML Code w/ Message Classes and Test Code


 / Published in: XHTML
 

URL: http://brandonbuttars.com

Same as my other snippet of XHTML to test with for CSS, but also have included message code for different types of messages. Perfect for building and styling applications.

  1. <!-- Sample Content to Plugin to Template -->
  2. <h1>CSS Basic Elements</h1>
  3.  
  4. <p>The purpose of this HTML is to help determine what default settings are with CSS and to make sure that all possible HTML Elements are included in this HTML so as to not miss any possible Elements when designing a site.</p>
  5.  
  6. <hr />
  7.  
  8. <h1>Messages</h1>
  9.  
  10. <div class="message information">
  11. <h4>Information</h4>
  12. <p>Information message goes right here. Information message goes right here. Information message goes right here. Information message goes right here. Information message goes right here.</p>
  13. </div>
  14. <div class="message error">
  15. <h4>Error</h4>
  16. <p>Error message goes right here. Error message goes right here. Error message goes right here. Error message goes right here. Error message goes right here. Error message goes right here.</p>
  17. </div>
  18. <div class="message notice">
  19. <h4>Status</h4>
  20. <p>Status message goes right here. Status message goes right here. Status message goes right here. Status message goes right here. Status message goes right here. Status message goes right here.</p>
  21. </div>
  22. <div class="message success">
  23. <h4>Success</h4>
  24. <p>Success message goes right here. Success message goes right here. Success message goes right here. Success message goes right here. Success message goes right here. Success message goes right here.</p>
  25. </div>
  26.  
  27. <hr/>
  28.  
  29. <h1 id="headings">Headings</h1>
  30.  
  31. <h1>Heading 1</h1>
  32. <h2>Heading 2</h2>
  33. <h3>Heading 3</h3>
  34. <h4>Heading 4</h4>
  35. <h5>Heading 5</h5>
  36. <h6>Heading 6</h6>
  37.  
  38. <hr />
  39.  
  40. <h1 id="paragraph">Paragraph</h1>
  41.  
  42. <p><img src="http://farm3.static.flickr.com/2224/2208833842_5dfe63f367.jpg" alt="Brandon and the Boys" />Lorem ipsum dolor sit amet, <a href="#" title="test link">test link</a> adipiscing elit. Nullam dignissim convallis est. Quisque aliquam. Donec faucibus. Nunc iaculis suscipit dui. Nam sit amet sem. Aliquam libero nisi, imperdiet at, tincidunt nec, gravida vehicula, nisl. Praesent mattis, massa quis luctus fermentum, turpis mi volutpat justo, eu volutpat enim diam eget metus. Maecenas ornare tortor. Donec sed tellus eget sapien fringilla nonummy. Mauris a ante. Suspendisse quam sem, consequat at, commodo vitae, feugiat in, nunc. Morbi imperdiet augue quis tellus.</p>
  43.  
  44. <p>Lorem ipsum dolor sit amet, <em>emphasis</em> consectetuer adipiscing elit. Nullam dignissim convallis est. Quisque aliquam. Donec faucibus. Nunc iaculis suscipit dui. Nam sit amet sem. Aliquam libero nisi, imperdiet at, tincidunt nec, gravida vehicula, nisl. Praesent mattis, massa quis luctus fermentum, turpis mi volutpat justo, eu volutpat enim diam eget metus. Maecenas ornare tortor. Donec sed tellus eget sapien fringilla nonummy. Mauris a ante. Suspendisse quam sem, consequat at, commodo vitae, feugiat in, nunc. Morbi imperdiet augue quis tellus.</p>
  45.  
  46.  
  47. <hr />
  48.  
  49. <h1 id="list_types">List Types</h1>
  50.  
  51. <h3>Definition List</h3>
  52. <dl>
  53. <dt>Definition List Title</dt>
  54. <dd>This is a definition list division.</dd>
  55. </dl>
  56.  
  57. <h3>Ordered List</h3>
  58. <ol>
  59. <li>List Item 1</li>
  60. <li>List Item 2</li>
  61. <li>List Item 3</li>
  62. </ol>
  63.  
  64. <h3>Unordered List</h3>
  65. <ul>
  66. <li>List Item 1</li>
  67. <li>List Item 2</li>
  68. <li>List Item 3</li>
  69. </ul>
  70.  
  71.  
  72. <hr />
  73.  
  74. <h1 id="form_elements">Fieldsets, Legends, and Form Elements</h1>
  75.  
  76. <legend>Legend</legend>
  77.  
  78. <p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Nullam dignissim convallis est. Quisque aliquam. Donec faucibus. Nunc iaculis suscipit dui. Nam sit amet sem. Aliquam libero nisi, imperdiet at, tincidunt nec, gravida vehicula, nisl. Praesent mattis, massa quis luctus fermentum, turpis mi volutpat justo, eu volutpat enim diam eget metus.</p>
  79.  
  80. <form method="post" action="#">
  81. <h2>Form Element</h2>
  82.  
  83. <p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Nullam dignissim convallis est. Quisque aliquam. Donec faucibus. Nunc iaculis suscipit dui.</p>
  84.  
  85. <p><label for="text_field">Text Field:</label><br />
  86. <input type="text" id="text_field" name="text_field" /></p>
  87.  
  88. <p><label for="text_area">Text Area:</label><br />
  89. <textarea id="text_area" name="textarea" rows="5" cols="20"></textarea></p>
  90.  
  91. <p><label for="select_element">Select Element:</label><br />
  92. <select name="select_element" id="select_element">
  93. <optgroup label="Option Group 1">
  94. <option value="1">Option 1</option>
  95. <option value="2">Option 2</option>
  96. <option value="3">Option 3</option>
  97. <optgroup label="Option Group 2">
  98. <option value="1">Option 1</option>
  99. <option value="2">Option 2</option>
  100. <option value="3">Option 3</option>
  101. </select></p>
  102.  
  103. <p><label>Radio Buttons:</label><br />
  104. <input type="radio" class="radio" name="radio_button" value="radio_1" /> Radio 1<br/>
  105. <input type="radio" class="radio" name="radio_button" value="radio_2" /> Radio 2<br/>
  106. <input type="radio" class="radio" name="radio_button" value="radio_3" /> Radio 3<br/>
  107. </p>
  108.  
  109. <p><label>Checkboxes:</label><br />
  110. <input type="checkbox" class="checkbox" name="checkboxes" value="check_1" /> Radio 1<br/>
  111. <input type="checkbox" class="checkbox" name="checkboxes" value="check_2" /> Radio 2<br/>
  112. <input type="checkbox" class="checkbox" name="checkboxes" value="check_3" /> Radio 3<br/>
  113. </p>
  114.  
  115. <p><label for="password">Password:</label><br />
  116. <input type="password" class="password" id="password" name="password" />
  117. </p>
  118.  
  119. <p><label for="file">File Input:</label><br />
  120. <input type="file" class="file" id="file" name="file" />
  121. </p>
  122.  
  123. <p>
  124. <button>Submit</button> <button type="reset">Clear</button>
  125. </p>
  126.  
  127. </form>
  128.  
  129.  
  130.  
  131. <hr />
  132.  
  133. <h1 id="tables">Tables</h1>
  134.  
  135. <caption>Table Caption Goes Here</caption>
  136. <tr>
  137. <th>Table Header 1</th><th>Table Header 2</th><th>Table Header 3</th>
  138. </tr>
  139. </thead>
  140. <tr>
  141. <th>Footer 1</th><th>Footer 2</th><th>Footer 3</th>
  142. </tr>
  143. </tfoot>
  144. <tr>
  145. <td>Division 1</td><td>Division 2</td><td>Division 3</td>
  146. </tr>
  147. <tr class="even">
  148. <td>Division 1</td><td>Division 2</td><td>Division 3</td>
  149. </tr>
  150. <tr>
  151. <td>Division 1</td><td>Division 2</td><td>Division 3</td>
  152. </tr>
  153. </tbody>
  154.  
  155.  
  156.  
  157. <hr />
  158.  
  159. <h1 id="misc">Misc Stuff - abbr, pre, code, sub, sup, etc.</h1>
  160.  
  161. <p>Lorem <sup>superscript</sup> dolor <sub>subscript</sub> amet, consectetuer adipiscing elit. Nullam dignissim convallis est. Quisque aliquam. <cite>cite</cite>. Nunc iaculis suscipit dui. Nam sit amet sem. Aliquam libero nisi, imperdiet at, tincidunt nec, gravida vehicula, nisl. Praesent mattis, massa quis luctus fermentum, turpis mi volutpat justo, eu volutpat enim diam eget metus. Maecenas ornare tortor. Donec sed tellus eget sapien fringilla nonummy. Suspendisse quam sem, consequat at, commodo vitae, feugiat in, nunc. Morbi imperdiet augue quis tellus. <abbr title="Avenue">AVE</abbr></p>
  162.  
  163. <pre>Lorem <sup>superscript</sup> dolor <sub>subscript</sub> amet, consectetuer adipiscing elit. Nullam dignissim convallis est. Quisque aliquam. <cite>cite</cite>. Nunc iaculis suscipit dui. Nam sit amet sem. Aliquam libero nisi, imperdiet at, tincidunt nec, gravida vehicula, nisl. Praesent mattis, massa quis luctus fermentum, turpis mi volutpat justo, eu volutpat enim diam eget metus. Maecenas ornare tortor. Donec sed tellus eget sapien fringilla nonummy. Suspendisse quam sem, consequat at, commodo vitae, feugiat in, nunc. Morbi imperdiet augue quis tellus. <abbr title="Avenue">AVE</abbr></pre>
  164.  
  165. <p>This stylesheet is going to help so freaking much.</p>
  166. <p>-Blockquote</p>
  167.  
  168. <!-- End of Sample Content -->

Report this snippet  

You need to login to post a comment.