{"id":407,"date":"2016-08-02T17:40:15","date_gmt":"2016-08-02T16:40:15","guid":{"rendered":"http:\/\/www.ci-api.stage2.goodshape.cz\/?page_id=407"},"modified":"2023-10-06T09:30:04","modified_gmt":"2023-10-06T07:30:04","slug":"testing-display-of-html-elements","status":"publish","type":"page","link":"https:\/\/apiagentura.gov.cz\/cs\/testing-display-of-html-elements\/","title":{"rendered":"Testing display of HTML elements"},"content":{"rendered":"<p><\/p>\n<h2>This is 2nd level heading<\/h2>\n<p>This is a test paragraph.<\/p>\n<h3>This is 3rd level heading<\/h3>\n<p>This is a test paragraph.<\/p>\n<h4>This is 4th level heading<\/h4>\n<p>This is a test paragraph.<\/p>\n<h5>This is 5th level heading<\/h5>\n<p>This is a test paragraph.<\/p>\n<h6>This is 6th level heading<\/h6>\n<p>This is a test paragraph.<\/p>\n<h2>Basic block level elements<\/h2>\n<p>This is a normal paragraph (<code>p<\/code> element).<br \/>\nTo add some length to it, let us mention that this page was<br \/>\nprimarily written for testing the effect of <strong>user style sheets<\/strong>.<br \/>\nYou can use it for various other purposes as well, like just checking how<br \/>\nyour browser displays various HTML elements by default.<br \/>\nIt can also be useful when testing conversions from HTML<br \/>\nformat to other formats, since some elements can go wrong then.<\/p>\n<p>This is another paragraph. I think it needs to be added that<br \/>\nthe set of elements tested is not exhaustive in any sense. I have selected<br \/>\nthose elements for which it can make sense to write user style sheet rules,<br \/>\nin my opionion.<\/p>\n<div>This is a <code>div<\/code> element. Authors may use such elements instead<br \/>\nof paragraph markup for various reasons. (End of <code>div<\/code>.)<\/div>\n<blockquote><p>This is a block quotation containing a single<br \/>\nparagraph. Well, not quite, since this is not <em>really<\/em><br \/>\nquoted text, but I hope you understand the point. After all, this<br \/>\npage does not use HTML markup very normally anyway.<\/p><\/blockquote>\n<p>The following contains address information about the author, in an <code>address<\/code><br \/>\nelement.<\/p>\n<address><a lang=\"fi\" href=\"..\/personal.html\" hreflang=\"en\">Jukka Korpela<\/a>,<br \/>\n<a href=\"mailto:jkorpela@cs.tut.fi\">jkorpela@cs.tut.fi<\/a><br \/>\nP\u00e4iv\u00e4ns\u00e4teenkuja 4 A, Espoo, Finland<\/address>\n<h2>Lists<\/h2>\n<p>This is a paragraph before an <strong>unnumbered<\/strong> list (<code>ul<\/code>). Note that<br \/>\nthe spacing between a paragraph and a list before or after that is hard<br \/>\nto tune in a user style sheet. You can&#8217;t guess which paragraphs are<br \/>\nlogically related to a list, e.g. as a &#8222;list header&#8220;.<\/p>\n<ul>\n<li>One.<\/li>\n<li>Two.<\/li>\n<li>Three. Well, probably this list item should be longer. Note that<br \/>\nfor short items lists look better if they are compactly presented,<br \/>\nwhereas for long items, it would be better to have more vertical spacing between items.<\/li>\n<li>Four. This is the last item in this list.<br \/>\nLet us terminate the list now without making any more fuss about it.<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<p>The following is a <code>dir<\/code> list:<\/p>\n<p>&nbsp;<\/p>\n<ul>\n<li>One.<\/li>\n<li>Two.<\/li>\n<li>Three. Well, probably this list item should be longer so that it will<br \/>\nprobably wrap to the next line in rendering.<br \/>\nThis is a paragraph before a <strong>numbered<\/strong> list (<code>ol<\/code>). Note that<br \/>\nthe spacing between a paragraph and a list before or after that is hard<br \/>\nto tune in a user style sheet. You can&#8217;t guess which paragraphs are<br \/>\nlogically related to a list, e.g. as a &#8222;list header&#8220;.<\/p>\n<ol>\n<li>One.<\/li>\n<li>Two.<\/li>\n<li>Three. Well, probably this list item should be longer. Note that if<br \/>\nitems are short, lists look better if they are compactly presented,<br \/>\nwhereas for long items, it would be better to have more vertical spacing between items.<\/li>\n<li>Four. This is the last item in this list.<br \/>\nLet us terminate the list now without making any more fuss about it.<\/li>\n<\/ol>\n<p>This is a paragraph before a <strong>definition<\/strong> list (<code>dl<\/code>).<br \/>\nIn principle, such a list should consist of <em>terms<\/em> and associated<br \/>\ndefinitions.<br \/>\nBut many authors use <code>dl<\/code> elements for fancy &#8222;layout&#8220; things. Usually the<br \/>\neffect is not <em>too<\/em> bad, if you design user style sheet rules for <code>dl<\/code><br \/>\nwhich are suitable<br \/>\nfor real definition lists.<\/p>\n<h2>Text-level markup<\/h2>\n<ul>\n<li><abbr title=\"Cascading Style Sheets\">CSS<\/abbr> (an abbreviation;<br \/>\n<code>abbr<\/code> markup used)<\/li>\n<li><acronym title=\"radio detecting and ranging\">radar<\/acronym> (an acronym; <code>acronym<\/code> markup used)<\/li>\n<li><b>bolded<\/b> (<code>b<\/code> markup used &#8211; just bolding with unspecified<br \/>\nsemantics)<\/li>\n<li><big>big thing<\/big> (<code>big<\/code> markup used)<\/li>\n<li><span style=\"font-size: xx-large;\">large size<\/span> (<code>font size=6<\/code> markup used)<\/li>\n<li><span style=\"font-family: Courier;\">Courier font<\/span> (<code>font face=Courier<\/code> markup used)<\/li>\n<li><span style=\"color: red;\">red text<\/span> (<code>font color=red<\/code> markup used)<\/li>\n<li><cite>Origin of Species<\/cite> (a book title;<br \/>\n<code>cite<\/code> markup used)<\/li>\n<li><code>a[i] = b[i] + c[i);<\/code> (computer code; <code>code<\/code> markup used)<\/li>\n<li>here we have some <del>deleted<\/del> text (<code>del<\/code> markup used)<\/li>\n<li>an <dfn>octet<\/dfn> is an entity consisting of eight bits<br \/>\n(<code>dfn<\/code> markup used for the term being defined)<\/li>\n<li>this is <em>very<\/em> simple (<code>em<\/code> markup used for emphasizing<br \/>\na word)<\/li>\n<li><i lang=\"la\">Homo sapiens<\/i> (should appear in italics; <code>i<\/code> markup used)<\/li>\n<li>here we have some <ins>inserted<\/ins> text (<code>ins<\/code> markup used)<\/li>\n<li>type <kbd>yes<\/kbd> when prompted for an answer (<code>kbd<\/code> markup<br \/>\nused for text indicating keyboard input)<\/li>\n<li><q>Hello!<\/q> (<code>q<\/code> markup used for quotation)<\/li>\n<li>He said: <q>She said <q>Hello!<\/q><\/q> (a quotation inside a quotation)<\/li>\n<li>you may get the message <samp>Core dumped<\/samp> at times<br \/>\n(<code>samp<\/code> markup used for sample output)<\/li>\n<li><small>this is not that important<\/small> (<code>small<\/code> markup used)<\/li>\n<li><span style=\"text-decoration: line-through;\">overstruck<\/span> (<code>strike<\/code> markup used; note:<br \/>\n<code>s<\/code> is a nonstandard synonym for <code>strike<\/code>)<\/li>\n<li><strong>this is highlighted text<\/strong> (<code>strong<\/code><br \/>\nmarkup used)<\/li>\n<li>In order to test how subscripts and superscripts (<code>sub<\/code> and<br \/>\n<code>sup<\/code> markup) work inside running text, we need some<br \/>\ndummy text around constructs like x<sub>1<\/sub> and H<sub>2<\/sub>O<br \/>\n(where subscripts occur). So here is some fill so that<br \/>\nyou will (hopefully) see whether and how badly the subscripts<br \/>\nand superscripts mess up vertical spacing between lines.<br \/>\nNow superscripts: M<sup>lle<\/sup>, 1<sup>st<\/sup>, and then some<br \/>\nmathematical notations: e<sup>x<\/sup>, sin<sup>2<\/sup> <i>x<\/i>,<br \/>\nand some nested superscripts (exponents) too:<br \/>\ne<sup>x<sup>2<\/sup><\/sup> and f(x)<sup>g(x)<sup>a+b+c<\/sup><\/sup><br \/>\n(where 2 and a+b+c should appear as exponents of exponents).<\/li>\n<li><tt>text in monospace font<\/tt> (<code>tt<\/code> markup used)<\/li>\n<li><u>underlined<\/u> text (<code>u<\/code> markup used)<\/li>\n<li>the command <code>cat<\/code> <var>filename<\/var> displays the<br \/>\nfile specified by the <var>filename<\/var> (<code>var<\/code> markup<br \/>\nused to indicate a word as a variable).<\/li>\n<\/ul>\n<p>Some of the elements tested above are typically displayed in a monospace<br \/>\nfont, often using the <em>same<\/em> presentation for all of them. This<br \/>\ntests whether that is the case on your browser:<\/p>\n<ul>\n<li><code>This is sample text inside code markup<\/code><\/li>\n<li><kbd>This is sample text inside kbd markup<\/kbd><\/li>\n<li><samp>This is sample text inside samp markup<\/samp><\/li>\n<li><tt>This is sample text inside tt markup<\/tt><\/li>\n<\/ul>\n<h2>Links<\/h2>\n<ul>\n<li><a href=\"..\/index.html\">main page<\/a><\/li>\n<li><a title=\"Writing Systems and Punctuation\" href=\"http:\/\/www.unicode.org\/versions\/Unicode4.0.0\/ch06.pdf\" type=\"application\/pdf\">Unicode Standard, chapter\u00a06<\/a><\/li>\n<\/ul>\n<p>This is a text paragraph that contains some<br \/>\ninline links. Generally, inline links (as opposite to e.g. links<br \/>\nlists) are problematic<br \/>\nfrom the<br \/>\n<a href=\"http:\/\/www.useit.com\">usability<\/a> perspective,<br \/>\nbut they may have use as<br \/>\n\u201cincidental\u201d, less relevant links. See the document<br \/>\n<cite><a href=\"links.html\">Links Want To Be Links<\/a><\/cite>.<\/p>\n<h2>Forms<\/h2>\n<form class=\"pure-form\" action=\"http:\/\/www.cs.tut.fi\/cgi-bin\/run\/~jkorpela\/echo.cgi\">\n<div><input name=\"hidden field\" type=\"hidden\" value=\"42\" \/><br \/>\nThis is a form containing various fields (with some initial<br \/>\nvalues (defaults) set, so that you can see how input text looks<br \/>\nlike without actually typing it):<\/div>\n<div><label for=\"but\">Button:<br \/>\n<button id=\"but\" class=\"button\" name=\"foo\" type=\"submit\" value=\"bar\">A cool<br \/>\nbutton<\/button><\/label><\/div>\n<div><\/div>\n<div><\/div>\n<p><label for=\"f1\">Single-line text input field: <input id=\"f1\" name=\"text\" size=\"20\" type=\"text\" value=\"Default text.\" \/><\/label><\/p>\n<div><\/div>\n<div><label for=\"f2\">Multi-line text input field (textarea):<\/label><br \/>\n<textarea id=\"f2\" cols=\"20\" name=\"textarea\" rows=\"2\">&lt;br \/&gt;&lt;br \/&gt;&lt;br \/&gt;&lt;br \/&gt;&lt;br \/&gt;&lt;br \/&gt;&lt;br \/&gt;&lt;br \/&gt;<br \/>\nDefault text.&lt;br \/&gt;&lt;br \/&gt;&lt;br \/&gt;&lt;br \/&gt;&lt;br \/&gt;&lt;br \/&gt;&lt;br \/&gt;&lt;br \/&gt;<br \/>\n<\/textarea><\/div>\n<div><\/div>\n<div>The following two radio buttons are inside<br \/>\na <code>fieldset<\/code> element with a <code>legend<\/code>:<\/div>\n<fieldset>\n<legend>Legend<\/legend>\n<div><label for=\"f3\"><input id=\"f3\" name=\"radio\" type=\"radio\" value=\"1\" \/> Radio button 1<\/label><\/div>\n<div><label for=\"f4\"><input id=\"f4\" checked=\"checked\" name=\"radio\" type=\"radio\" value=\"2\" \/> Radio button 2 (initially checked)<\/label><\/div>\n<\/fieldset>\n<fieldset>\n<legend>Check those that apply<\/legend>\n<div><label for=\"f5\"><input id=\"f5\" name=\"checkbox\" type=\"checkbox\" \/> Checkbox 1<\/label><\/div>\n<div><label for=\"f6\"><input id=\"f6\" checked=\"checked\" name=\"checkbox2\" type=\"checkbox\" \/> Checkbox 2 (initially checked)<\/label><\/div>\n<\/fieldset>\n<div><label for=\"f10\">A <code>select<\/code> element with <code>size=\"1\"<\/code><br \/>\n(dropdown box):<br \/>\n<select name=\"select1\" size=\"1\"><option>one<\/option><option selected=\"selected\">two (default)<\/option><option>three<\/option><\/select><br \/>\n<\/label><\/div>\n<div><label for=\"f11\">A <code>select<\/code> element with <code>size=\"3\"<\/code><br \/>\n(listbox):<\/label><br \/>\n<select name=\"select2\" size=\"3\"><option>one<\/option><option selected=\"selected\">two (default)<\/option><option>three<\/option><\/select><\/div>\n<div><\/div>\n<div><label for=\"f99\">Submit button:<br \/>\n<input id=\"f99\" name=\"submit\" type=\"submit\" value=\"Just a test\" \/><\/label><\/div>\n<\/form>\n<h2>Tables<\/h2>\n<p>The following table has a caption. The first row and the first column<br \/>\ncontain table header cells (<code>th<\/code> elements) only; other cells<br \/>\nare data cells (<code>td<\/code> elements), with <code>align=\"right\"<\/code><br \/>\nattributes:<\/p>\n<table class=\"pure-table\" summary=\"Each row names a Nordic country and specifies its total area and land area, in square kilometers\">\n<caption>Sample table: Areas of the Nordic countries, in sq km<\/caption>\n<tbody>\n<tr>\n<th scope=\"col\">Country<\/th>\n<th scope=\"col\">Total area<\/th>\n<th scope=\"col\">Land area<\/th>\n<\/tr>\n<tr>\n<th scope=\"row\">Denmark<\/th>\n<td align=\"RIGHT\">43,070<\/td>\n<td align=\"RIGHT\">42,370<\/td>\n<\/tr>\n<tr>\n<th scope=\"row\">Finland<\/th>\n<td align=\"RIGHT\">337,030<\/td>\n<td align=\"RIGHT\">305,470<\/td>\n<\/tr>\n<tr>\n<th scope=\"row\">Iceland<\/th>\n<td align=\"RIGHT\">103,000<\/td>\n<td align=\"RIGHT\">100,250<\/td>\n<\/tr>\n<tr>\n<th scope=\"row\">Norway<\/th>\n<td align=\"RIGHT\">324,220<\/td>\n<td align=\"RIGHT\">307,860<\/td>\n<\/tr>\n<tr>\n<th scope=\"row\">Sweden<\/th>\n<td align=\"RIGHT\">449,964<\/td>\n<td align=\"RIGHT\">410,928<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul>\n<li>prvn\u00ed odr\u00e1\u017eka\n<ul>\n<li>druh\u00e1 odr\u00e1\u017eka\n<ul>\n<li>t\u0159et\u00ed odr\u00e1\u017eka\n<ul>\n<li>\u010dtvrt\u00e1 odr\u00e1\u017eka<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p><\/p>","protected":false},"excerpt":{"rendered":"<p>This is 2nd level heading This is a test paragraph. This is 3rd level heading This is a test paragraph. This is 4th level heading This is a test paragraph. This is 5th level heading This is a test paragraph. This is 6th level heading This is a test paragraph. Basic block level elements This [&hellip;]<\/p>\n","protected":false},"author":35,"featured_media":0,"parent":0,"menu_order":36,"comment_status":"closed","ping_status":"closed","template":"","meta":{"inline_featured_image":false,"footnotes":""},"class_list":["post-407","page","type-page","status-publish","hentry"],"publishpress_future_action":{"enabled":false,"date":"2026-05-03 18:18:55","action":"change-status","newStatus":"draft","terms":[],"taxonomy":"","extraData":[]},"publishpress_future_workflow_manual_trigger":{"enabledWorkflows":[]},"_links":{"self":[{"href":"https:\/\/apiagentura.gov.cz\/cs\/wp-json\/wp\/v2\/pages\/407","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/apiagentura.gov.cz\/cs\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/apiagentura.gov.cz\/cs\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/apiagentura.gov.cz\/cs\/wp-json\/wp\/v2\/users\/35"}],"replies":[{"embeddable":true,"href":"https:\/\/apiagentura.gov.cz\/cs\/wp-json\/wp\/v2\/comments?post=407"}],"version-history":[{"count":0,"href":"https:\/\/apiagentura.gov.cz\/cs\/wp-json\/wp\/v2\/pages\/407\/revisions"}],"wp:attachment":[{"href":"https:\/\/apiagentura.gov.cz\/cs\/wp-json\/wp\/v2\/media?parent=407"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}