Skip to content

Instantly share code, notes, and snippets.

@victorstanciu
Created November 26, 2012 14:15
Show Gist options
  • Save victorstanciu/4148421 to your computer and use it in GitHub Desktop.
Save victorstanciu/4148421 to your computer and use it in GitHub Desktop.
Sample document file
<p>This is a test paragraph.</p>
<h3>This is 3rd level heading</h3>
<p>This is a test paragraph.</p>
<h4>This is 4th level heading</h4>
<p>This is a test paragraph.</p>
<h5>This is 5th level heading</h5>
<p>This is a test paragraph.</p>
<h6>This is 6th level heading</h6>
<p>This is a test paragraph.</p>
<h2>Basic block level elements</h2>
<p>This is a normal paragraph (p element). To add some length to it, let us mention that this page was primarily written for testing the effect of <strong>user style sheets</strong>. You can use it for various other purposes as well, like just checking how your browser displays various HTML elements.</p>
<p>This is another paragraph. I think it needs to be added that the set of elements tested is not exhaustive in any sense. I have selected those elements for which it can make sense to write user style sheet rules, in my opionion.</p>
<p>This is a div element. Authors may use such elements instead of paragraph markup for various reasons. (End of div.)</p>
<blockquote>
<p>This is a block quotation containing a single paragraph. Well, not quite, since this is not <em>really</em> quoted text, but I hope you understand the point. After all, this page does not use HTML markup very normally anyway.</p>
</blockquote>
<p>The following contains address information about the author, in an address element.</p>
<p><a href="http://localhost/freelance/buchia/admin/personal.html">Jukka Korpela</a>, <a href="mailto:jkorpela@cs.tut.fi">jkorpela@cs.tut.fi</a></p>
<h2>Lists</h2>
<p>This is a paragraph before an <strong>unnumbered</strong> list (ul). Note that the spacing between a paragraph and a list before or after that is hard to tune in a user style sheet. You can't guess which paragraphs are logically related to a list, e.g. as a "list header".</p>
<ul>
<li> One. </li>
<li> Two. </li>
<li> Three. Well, probably this list item should be longer. Note that for short items lists look better if they are compactly presented, whereas for long items, it would be better to have more vertical spacing between items. </li>
<li> Four. This is the last item in this list. Let us terminate the list now without making any more fuss about it. </li>
</ul>
<p>This is a paragraph before a <strong>numbered</strong> list (ol). Note that the spacing between a paragraph and a list before or after that is hard to tune in a user style sheet. You can't guess which paragraphs are logically related to a list, e.g. as a "list header".</p>
<ol>
<li> One. </li>
<li> Two. </li>
<li> Three. Well, probably this list item should be longer. Note that if items are short, lists look better if they are compactly presented, whereas for long items, it would be better to have more vertical spacing between items. </li>
<li> Four. This is the last item in this list. Let us terminate the list now without making any more fuss about it. </li>
</ol>
<p>This is a paragraph before a <strong>definition</strong> list (dl). In principle, such a list should consist of <em>terms</em> and associated definitions. But many authors use dl elements for fancy "layout" things. Usually the effect is not <em>too</em> bad, if you design user style sheet rules for dl which are suitable for real definition lists.</p>
<p>recursion see recursion recursion, indirect see indirect recursion indirect recursion see recursion, indirect term a word or other expression taken into specific use in a well-defined meaning, which is often defined rather rigorously, even formally, and may differ quite a lot from an everyday meaning</p>
<h2>Text-level markup</h2>
<ul>
<li> CSS (an abbreviation; abbr markup used) </li>
<li> radar (an acronym; acronym markup used) </li>
<li> <strong>bolded</strong> (b markup used - just bolding with unspecified semantics) </li>
<li> big thing (big markup used) </li>
<li> <span style="font-size:x-large;">large size</span> (font size=6 markup used) </li>
<li> <span style="font-family:Courier;">Courier font</span> (font face=Courier markup used) </li>
<li> <span style="color:#FF0000;">red text</span> (font color=red markup used) </li>
<li> Origin of Species (a book title; cite markup used) </li>
<li> a[i] = b[i] + c[i); (computer code; code markup used) </li>
<li> here we have some deleted text (del markup used) </li>
<li> an octet is an entity consisting of eight bits (dfn markup used for the term being defined) </li>
<li> this is <em>very</em> simple (em markup used for emphasizing a word) </li>
<li> <em>Homo sapiens</em> (should appear in italics; i markup used) </li>
<li> here we have some inserted text (ins markup used) </li>
<li> type yes when prompted for an answer (kbd markup used for text indicating keyboard input) </li>
<li> Hello! (q markup used for quotation) </li>
<li> He said: She said Hello! (a quotation inside a quotation) </li>
<li> you may get the message Core dumped at times (samp markup used for sample output) </li>
<li> <small>this is not that important</small> (small markup used) </li>
<li> <span style="text-decoration: line-through;">overstruck</span> (strike markup used; note: s is a nonstandard synonym for strike) </li>
<li> <strong>this is highlighted text</strong> (strong markup used) </li>
<li> In order to test how subscripts and superscripts (sub and sup markup) work inside running text, we need some dummy text around constructs like x<sub>1</sub> and H<sub>2</sub>O (where subscripts occur). So here is some fill so that you will (hopefully) see whether and how badly the subscripts and superscripts mess up vertical spacing between lines. Now superscripts: M<sup>lle</sup>, 1<sup>st</sup>, and then some mathematical notations: e<sup>x</sup>, sin<sup>2</sup><em>x</em>, and some nested superscripts (exponents) too: e<sup>x<sup>2</sup></sup> and f(x)<sup>g(x)<sup>a+b+c</sup></sup> (where 2 and a+b+c should appear as exponents of exponents). </li>
<li> <tt>text in monospace font</tt> (tt markup used) </li>
<li> <span style="text-decoration: underline;">underlined</span> text (u markup used) </li>
<li> the command cat filename displays the file specified by the filename (var markup used to indicate a word as a variable). </li>
</ul>
<p>Some of the elements tested above are typically displayed in a monospace font, often using the <em>same</em> presentation for all of them. This tests whether that is the case on your browser:</p>
<ul>
<li> This is sample text inside code markup </li>
<li> This is sample text inside kbd markup </li>
<li> This is sample text inside samp markup </li>
<li> <tt>This is sample text inside tt markup</tt> </li>
</ul>
<h2>Links</h2>
<ul>
<li> <a href="http://localhost/">main page</a> </li>
<li> <a title="WritingSystemsandPunctuation" href="http://www.unicode.org/versions/Unicode4.0.0/ch06.pdf">Unicode Standard, chapter&nbsp;6</a> </li>
</ul>
<p>This is a text paragraph that contains some inline links. Generally, inline links (as opposite to e.g. links lists) are problematic from the <a href="http://www.useit.com">usability</a> perspective, but they may have use as &ldquo;incidental&rdquo;, less relevant links.</p>
<h2>Tables</h2>
<p>The following table has a caption. The first row and the first column contain table header cells (th elements) only; other cells are data cells (td elements), with align="right" attributes:</p>
<table border="0" summary="EachrownamesaNordiccountryandspecifiesitstotalareaandlandarea,insquarekilometers">
<caption>Sample table: Areas of the Nordic countries, in sq km</caption>
<tbody>
<tr>
<th>Country</th> <th>Total area</th> <th>Land area</th>
</tr>
<tr>
<th>Denmark</th>
<td align="right">43,070</td>
<td align="right">42,370</td>
</tr>
<tr>
<th>Finland</th>
<td align="right">337,030</td>
<td align="right">305,470</td>
</tr>
<tr>
<th>Iceland</th>
<td align="right">103,000</td>
<td align="right">100,250</td>
</tr>
<tr>
<th>Norway</th>
<td align="right">324,220</td>
<td align="right">307,860</td>
</tr>
<tr>
<th>Sweden</th>
<td align="right">449,964</td>
<td align="right">410,928</td>
</tr>
</tbody>
</table>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment