WordPress Test HTML


/ Published in: HTML
Save to your folder(s)

Use this code to test your WordPress themes.


Copy this code and paste it in your HTML
  1. <h1>Heading to the WP Filler Text</h1>
  2. <p>OK, so images can get quite complicated as we have a few variables to work with! For example the image below has had a caption entered in the WordPress image upload dialog box, this creates a [caption] shortcode which then in turn wraps the whole thing in a <code>div</code> with inline styling! Maybe one day they'll be able to use the <code>figure</code> and <code>figcaption</code> elements for all this. Additionally, images can be wrapped in links which, if you're using anything other than <code>color</code> or <code>text-decoration</code> to style your links can be problematic.</p>
  3. <div id="attachment_28" class="wp-caption alignnone" style="width: 510px"><a href="#"><img src="http://www.wpfill.me.s3-website-us-east-1.amazonaws.com/img/img_large.png" alt="Your Alt Tag" title="bmxisbest" width="500" height="300" class="size-large wp-image-28"></a><p class="wp-caption-text">This is the optional caption.</p></div>
  4. <p>The next issue we face is image alignment, users get the option of <em>None</em>, <em>Left</em>, <em>Right</em> &amp; <em>Center</em>. On top of this, they also get the options of <em>Thumbnail</em>, <em>Medium</em>, <em>Large</em> &amp; <em>Fullsize</em>. You'll probably want to add floats to style the image position so important to remember to clear these to stop images popping below the bottom of your articles.</p>
  5. <img src="http://www.wpfill.me.s3-website-us-east-1.amazonaws.com/img/img_medium.png" alt="Your Alt Title" title="Your Title" width="300" height="200" class="alignright size-medium wp-image-28">
  6. <img src="http://www.wpfill.me.s3-website-us-east-1.amazonaws.com/img/img_thumb.png" alt="Your Alt Title" title="Your Title" width="150" height="150" class="alignleft size-thumbnail wp-image-28">
  7. <img class="aligncenter size-medium wp-image-28" title="Your Title" src="http://www.wpfill.me.s3-website-us-east-1.amazonaws.com/img/img_medium.png" alt="Your Alt Title" width="300" height="200">
  8. <img src="http://www.wpfill.me.s3-website-us-east-1.amazonaws.com/img/img_full.png" alt="Your Alt Title" title="Your Title" width="840" height="300" class="alignnone size-full wp-image-28">
  9. <p>Additionally, to add further confusion, images can be wrapped inside paragraph content, lets test some examples here.<img src="http://www.wpfill.me.s3-website-us-east-1.amazonaws.com/img/img_medium.png" alt="Your Alt Title" title="Your Title" width="300" height="200" class="alignright size-medium wp-image-28">
  10. Vivamus sagittis lacus vel augue laoreet rutrum faucibus dolor auctor. Maecenas sed diam eget risus varius blandit sit amet non magna. Aenean lacinia bibendum nulla sed consectetur.<img src="http://www.wpfill.me.s3-website-us-east-1.amazonaws.com/img/img_thumb.png" alt="Your Alt Title" title="Your Title" width="150" height="150" class="alignleft size-thumbnail wp-image-28">Vivamus sagittis lacus vel augue laoreet rutrum faucibus dolor auctor. Maecenas sed diam eget risus varius blandit sit amet non magna. Aenean lacinia bibendum nulla sed consectetur.<img src="http://www.wpfill.me.s3-website-us-east-1.amazonaws.com/img/img_thumb.png" alt="Your Alt Title" title="Your Title" width="150" height="150" class="aligncenter size-thumbnail wp-image-28">Aenean lacinia bibendum nulla sed consectetur. Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum. Donec ullamcorper nulla non metus auctor fringilla. Aenean lacinia bibendum nulla sed consectetur.</p>
  11. <p>And then... Finally, users can insert a WordPress [gallery], which is kinda ugly and comes with some CSS stuck into the page to style it (which doesn't actually validate, nor does the markup for the gallery). The amount of columns in the gallery is also changable by the user, but the default is three so we'll work with that for our example with an added fouth image to test verticle spacing.</p>
  12. <style type="text/css">#gallery-1{margin:auto;}#gallery-1 .gallery-item{float:left;margin-top:10px;text-align:center;width:33%;}#gallery-1 img{border:2px solid #cfcfcf;}#gallery-1 .gallery-caption{margin-left:0;}</style>
  13.  
  14. <div id="gallery-1" class="gallery galleryid-1 gallery-columns-3 gallery-size-thumbnail"><dl class="gallery-item">
  15. <dt class="gallery-icon">
  16. <a href="#" title="Your Title"><img width="150" height="150" src="http://www.wpfill.me.s3-website-us-east-1.amazonaws.com/img/img_thumb.png" class="attachment-thumbnail" alt="Your Alt Title" title="Your Title"></a>
  17. </dt></dl><dl class="gallery-item">
  18. <dt class="gallery-icon">
  19. <a href="#" title="Your Title"><img width="150" height="150" src="http://www.wpfill.me.s3-website-us-east-1.amazonaws.com/img/img_thumb.png" class="attachment-thumbnail" alt="Your Alt Title" title="Your Title"></a>
  20. </dt></dl><dl class="gallery-item">
  21. <dt class="gallery-icon">
  22. <a href="#" title="Your Title"><img width="150" height="150" src="http://www.wpfill.me.s3-website-us-east-1.amazonaws.com/img/img_thumb.png" class="attachment-thumbnail" alt="Your Alt Title" title="Your Title"></a>
  23. </dt></dl><br style="clear: both"><dl class="gallery-item">
  24. <dt class="gallery-icon">
  25. <a href="#" title="Your Title"><img width="150" height="150" src="http://www.wpfill.me.s3-website-us-east-1.amazonaws.com/img/img_thumb.png" class="attachment-thumbnail" alt="Your Alt Title" title="Your Title"></a>
  26. </dt></dl>
  27. <br style="clear: both;">
  28. </div>
  29.  
  30. <tr>
  31. <th>Table Head Column One</th>
  32. <th>Table Head Column Two</th>
  33. <th>Table Head Column Three</th>
  34. </tr>
  35. <tr>
  36. <th>Table Footer Column One</th>
  37. <th>Table Footer Column Two</th>
  38. <th>Table Footer Column Three</th>
  39. </tr>
  40. <tr>
  41. <td>Table Row Column One</td>
  42. <td>Short Text</td>
  43. <td>Testing a table cell with a longer amount of text to see what happens, you're not using tables for site layouts are you?</td>
  44. </tr>
  45. <tr>
  46. <td>Table Row Column One</td>
  47. <td>Table Row Column Two</td>
  48. <td>Table Row Column Three</td>
  49. </tr>
  50. <tr>
  51. <td>Table Row Column One</td>
  52. <td>Table Row Column Two</td>
  53. <td>Table Row Column Three</td>
  54. </tr>
  55. <tr>
  56. <td>Table Row Column One</td>
  57. <td>Table Row Column Two</td>
  58. <td>Table Row Column Three</td>
  59. </tr>
  60. <tr>
  61. <td>Table Row Column One</td>
  62. <td>Table Row Column Two</td>
  63. <td>Table Row Column Three</td>
  64. </tr>
  65.  
  66. <ol>
  67. <li>Ordered list item one.</li>
  68. <li>Ordered list item two.</li>
  69. <li>Ordered list item three.</li>
  70. <li>Ordered list item four.</li>
  71. <li>By the way, Wordpress does not let you create nested lists through the visual editor.</li>
  72. </ol>
  73.  
  74. <ul>
  75. <li>Unordered list item one.</li>
  76. <li>Unordered list item two.</li>
  77. <li>Unordered list item three.</li>
  78. <li>Unordered list item four.</li>
  79. <li>By the way, Wordpress does not let you create nested lists through the visual editor.</li>
  80. </ul>
  81.  
  82. Currently WordPress blockquotes are just wrapped in blockquote tags and have no clear way for the user to define a source. Maybe one day they'll be more semantic (and easier to style) like the version below.
  83. <blockquote cite="http://html5doctor.com/blockquote-q-cite/">
  84. <p>HTML5 comes to our rescue with the footer element, allowing us to add semantically separate information about the quote.</p>
  85. <footer>
  86. <a href="http://html5doctor.com/blockquote-q-cite/">Oli Studholme, HTML5doctor.com</a>
  87. </cite>
  88. </footer>
  89.  
  90. <h1>Level One Heading</h1>
  91. <h2>Level Two Heading</h2>
  92. <h3>Level Three Heading</h3>
  93. <h4>Level Four Heading</h4>
  94. <h5>Level Five Heading</h5>
  95. <h6>Level Six Heading</h6>
  96.  
  97. <p>This is a standard paragraph created using the WordPress TinyMCE text editor. It has a <strong>strong tag</strong>, an <em>em tag</em> and a <del>strikethrough</del> which is actually just the del element. There are a few more inline elements which are not in the WordPress admin but we should check for incase your users get busy with the copy and paste. These include <cite>citations</cite>, <abbr title="abbreviation">abbr</abbr>, bits of <code>code</code> and <var>variables</var>, <q>inline quotations</q>, <ins datetime="2011-12-08T20:19:53+00:00">inserted text</ins>, text that is <s>no longer accurate</s> or something <mark>so important</mark> you might want to mark it. We can also style subscript and superscript characters like C0<sub>2</sub>, here is our 2<sup>nd</sup> example. If they are feeling non-semantic they might even use <b>bold</b>, <i>italic</i>, <big>big</big> or <small>small</small> elements too.&nbsp;Incidentally, these HTML4.01 tags have been given new life and semantic meaning in HTML5, you may be interested in reading this <a title="HTML5 Semantics" href="http://csswizardry.com/2011/01/html5-and-text-level-semantics">article by Harry Roberts</a> which gives a nice excuse to test a link.&nbsp;&nbsp;It is also worth noting in the "kitchen sink" view you can also add <span style="text-decoration: underline;">underline</span>&nbsp;styling and set <span style="color: #ff0000;">text color</span> with pesky inline CSS.</p>
  98. <p style="text-align: left;">Additionally, WordPress also sets text alignment with inline styles, like this left aligned paragraph.&nbsp;Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum. Cras mattis consectetur purus sit amet fermentum.</p>
  99. <p style="text-align: right;">This is a right aligned paragraph.&nbsp;Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum. Cras mattis consectetur purus sit amet fermentum.</p>
  100. <p style="text-align: justify;">This is a justified paragraph.&nbsp;Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum. Cras mattis consectetur purus sit amet fermentum.</p>
  101. <p style="padding-left: 30px;">Finally, you also have the option of an indented paragraph.&nbsp;Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum. Cras mattis consectetur purus sit amet fermentum.</p> <p>And last, and by no means least, users can also apply the <code>Address</code> tag to text like this:</p> <address>123 Example Street,
  102. Testville,
  103. West Madeupsburg,
  104. CSSland,
  105. 1234</address> <p>...so there you have it, all our text elements</p>

URL: http://brandonbuttars.com

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.