Posted By

iroybot on 10/08/09


Tagged

html xhtml markup


Versions (?)

Who likes this?

2 people have marked this snippet as a favorite

iroybot
nerdfiles


Sample Markup for CSS Developers v0.1


 / Published in: HTML
 

URL: http://contactsheet.de/sample-markup-for-css-developers.xhtml

no need for Lorem ipsum if you can insert something that makes more sense and even helps you address more HTML elements with the CSS you're about to write.

  1. <p>This samplpe markup provides various HTML elements and how they would appear in your design. You might want to use the Firefox extension Firebug to spot each element.</p>
  2. <p>Lorem ipsum sensibus <a href="http://www.example.com/element/examples" title="Example link, goes nowhere">link eleifend reprehendunt</a> ex nam, vocent recusabo omittantur ei nam. Cum te altera numquam, in dicta corpora mel.
  3. She said, <q>Quotation element verear iisque theophrastus ex vix, volutpat evertitur disputando eu mel.</q> Sed at lorem legere electram.</p>
  4. <blockquote cite="http://www.example.com/blockquote" title="Example of blockquote">
  5. <p>Partem evertitur has ex. <a href="http://www.example.com/element/link" title="Element link child">In vix hinc munere</a> oportere, vel in dicunt intellegebat. Puto soluta at sed. An vim ignota eirmod, no vulputate intellegebat vix!</p>
  6. <p>At urbanitas suscipiantur sea, dicant legimus mei et, maiorum propriae intellegat at sed!</p>
  7. <table summary="Shows Grade Statistics.">
  8. <caption>This table holds weird numbers.<br />
  9. <small>(Find out more about numbers on <a href="http://www.wikipedia.org/" title="Yep. You can place inline-elements within a table's caption">Wikipedia</a>)</small>
  10. <tr>
  11. <th></th>
  12. <th scope="col">A</th>
  13. <th scope="col">B</th>
  14. <th scope="col">C</th>
  15. <th scope="col">D</th>
  16. <th scope="col">E</th>
  17. <th scope="col">F</th>
  18. <th scope="col">G</th>
  19. </tr>
  20. </thead>
  21. <tr>
  22. <td></td>
  23. <td><a href="#appendix"><sup>*</sup></a></td>
  24. <td><a href="#appendix"><sup>**</sup></a></td>
  25. <td><a href="#appendix"><sup>***</sup></a></td>
  26. <td><a href="#appendix"><sup>1</sup></a></td>
  27. <td><a href="#appendix"><sup>2</sup></a></td>
  28. <td><a href="#appendix"><sup>3</sup></a></td>
  29. <td><a href="#appendix"><sup>tfoot</sup></a></td>
  30. </tr>
  31. </tfoot>
  32. <tr>
  33. <th id="th137750E80000" scope="row">Biology</th>
  34. <td headers="th137750E80000">65</td>
  35. <td headers="th137750E80000">6</td>
  36. <td headers="th137750E80000">5</td>
  37. <td headers="th137750E80000">5</td>
  38. <td headers="th137750E80000">6</td>
  39. <td headers="th137750E80000">6</td>
  40. <td headers="th137750E80000">6</td>
  41. </tr>
  42. <tr>
  43. <th id="th137750E80100" scope="row">Physics</th>
  44. <td headers="th137750E80100">65</td>
  45. <td headers="th137750E80100">6</td>
  46. <td headers="th137750E80100">5</td>
  47. <td headers="th137750E80100">5</td>
  48. <td headers="th137750E80100">6</td>
  49. <td headers="th137750E80100">6</td>
  50. <td headers="th137750E80100">6</td>
  51. </tr>
  52. <tr>
  53. <th id="th137750E80200" scope="row">Chemistry</th>
  54. <td headers="th137750E80200">65</td>
  55. <td headers="th137750E80200">6</td>
  56. <td headers="th137750E80200">5</td>
  57. <td headers="th137750E80200">5</td>
  58. <td headers="th137750E80200">6</td>
  59. <td headers="th137750E80200">6</td>
  60. <td headers="th137750E80200">6</td>
  61. </tr>
  62. <tr>
  63. <th id="th137750E80300" scope="row">Totals</th>
  64. <td headers="th137750E80300">65</td>
  65. <td headers="th137750E80300">12</td>
  66. <td headers="th137750E80300">45</td>
  67. <td headers="th137750E80300">86</td>
  68. <td headers="th137750E80300">56</td>
  69. <td headers="th137750E80300">56</td>
  70. <td headers="th137750E80300">56</td>
  71. </tr>
  72. </tbody>
  73. <!-- Table Template Ends -->
  74.  
  75. <p>Let's continue with... Yes! Yet another paragraph! <span>This text is within a span element</span> consectetuer, vel quot malorum no! Has eu mollis iracundia. Eam latine conclusionemque ne. Et cibo veritus dissentiet eum, sed legendos qualisque evertitur te.</p>
  76. <!-- the markup to display this code listing is generated with Code2CSS @see www.erikpoehler.com/code2css/ -->
  77. <ol class="code php">
  78. <li class="t0 odd"><code>// Use of the pre element for PHP code</code></li>
  79. <li class="t0"><code>function get_blog_lang() {</code></li>
  80. <li class="t2 odd"><code>if ( function_exists('language_attributes') )</code></li>
  81. <li class="t3"><code>return language_attributes();</code></li><li class="t0 odd"><code>}</code></li>
  82. </ol>
  83. <p>Eu facete perfecto nec, some CSS code: <code class="css">/* this is &lt;code&gt; element placed inline */ div#footer{text-align:center;}</code> libris doming eos ex, tota omnium electram ius ad. Has eu vituperatoribus mediocrem. Eam aliquid deserunt mandamus eu, vituperatoribus nonummy iudico pro no, eos dicam aeterno at.</p>
  84.  
  85. <pre>&lt;?php
  86. /**
  87. * This code snippet is
  88. * actually placed within
  89. * a &lt;pre&gt; block.
  90. * @uses DefaultClass
  91. * @see http://example.com/DefaultClass/
  92. *
  93. */
  94. $main = MainClass::getInstance();
  95. $main->setDoctype('xhtml');
  96. $main->show();
  97. ?&gt;
  98. </pre>
  99.  
  100. <p>Let's leave those boring data tables and code behind and move on to something fun: lists</p>
  101. <ul>
  102. <li>Unordered list example item first</li>
  103. <li>Magna everti <a href="http://www.example.com/element/link" title="Element link child">diceret</a> no qui</li>
  104. <li>d discere urbanitas definitiones quo
  105. <ul>
  106. <li>a nested list.</li>
  107. <li>argumentum quo id
  108. <ul>
  109. <li>second level <samp>&lt;ul&gt;-nesting</li>
  110. <li>Ei nibh similique eam</li>
  111. <li>Vix mediocrem sententiae ne</li>
  112. </ul>
  113. </li>
  114. <li>takimata eloquentiam</li>
  115. </ul>
  116. </li>
  117. <li>Usu libris albucius cu, kasd contentiones no eos</li>
  118. <li>Zzril forensibus dissentias ex pro</li>
  119. </ul>
  120. <p>Ea has <em>emphasis text is here</em> vocent aliquid dolorem, te utinam discere eripuit cum! Id cum <strong>strong emphasis text epicuri evertitur</strong>, cu summo nullam mucius vim? Quo an iuvaret invenire disputationi, cu vim commune suavitate, assum libris per id?</p>
  121. <p>Ius <strong>bold text is here</strong> probatus rationibus id. Novum <em>italicized text is here</em> utinam democritum ad vim! Illud fabellas imperdiet vis et, et stet essent appareat quo!</p>
  122. <ol>
  123. <li>Ordered list example item first</li>
  124. <li>Magna everti <a href="http://www.example.com/element/link" title="Element link child">diceret</a> no qui</li>
  125. <li>d discere urbanitas definitiones quo
  126. <ol>
  127. <li>nested, ordered list. aeterno consulatu</li>
  128. <li>argumentum quo id
  129. <ol>
  130. <li>latine scribentur</li>
  131. <li>possim menandri</li>
  132. </ol>
  133. </li>
  134. <li>takimata eloquentiam</li>
  135. </ol>
  136. </li>
  137. <li>Usu libris albucius cu, kasd contentiones no eos</li>
  138. <li>Zzril forensibus dissentias ex pro</li>
  139. </ol>
  140. <p>Eum error accommodare ea! Cu nam modo iusto! His in quot a citation from <cite title="Example citation">Designing with Web Standards</cite> Paulo efficiendi, in aliquip nostrum eam! Cu sea dicunt intellegam consequuntur, omnis adipiscing id est?</p>
  141. <p>An abbreviation of <abbr title="Journal of the American Medical Association">JAMA</abbr> reque illum audiam nam, aeterno consulatu argumentum quo id, soluta mandamus ei vix? Eu qui alii nobis propriae, has dolor molestiae ut. His aliquid pertinax in, alterum facilis takimata in mea. Nec mazim aeque an. Ius ad errem saperet postulant, equidem perpetua mediocrem est at.</p>
  142. <blockquote cite="http://www.example.com/" title="Example of nested blockquote">
  143. <p>Et mea elit perpetua torquatos, id qui aeque albucius instructior? Te eum quis doctus delicata. Vim alia erant salutatus ad. Ius etiam scriptorem ne? Iracundia appellantur vix at, ut debitis vituperatoribus mea!</p>
  144. <p>Nested Blockquote. Lorem ipsum sensibus eleifend reprehendunt ex nam, vocent recusabo omittantur ei nam. Cum te altera numquam, in dicta corpora mel. Verear iisque theophrastus ex vix, volutpat evertitur disputando eu mel.</p>
  145. <p>Magna everti diceret no qui, id discere urbanitas definitiones quo? Dicant recusabo interesset ne vim, in mei ignota deterruisset!</p>
  146. <p>Ferri graece prompta ex duo, latine scribentur eu cum, nam voluptua oportere definitiones id.</p>
  147. <p>Deleted text: <del>Duo in odio aliquam, sit aliquam comprehensam eu. Liber virtute detraxit ei vix! Ex eam wisi aliquam adipisci. An usu platonem qualisque, ex platonem maluisset constituam sea.</del></p>
  148. <p>Inserted text: <ins>Eos ex tractatos definitiones. Choro timeam sed ut, te qui cibo semper phaedrum, appetere delicata cu eos. Periculis dignissim ex per.</ins></p>
  149. <div>
  150. <p>This last paragraph is wrapped in a <samp>$lt;div&gt;<samp> Lorem inermis cotidieque usu no, delenit scripserit reprehendunt qui ad. Ne eum recteque splendide. <strong>Qui possim menandri referrentur ea, assentior theophrastus id vis, id feugiat persecuti est!</strong></p>
  151. </div>

Report this snippet  

You need to login to post a comment.