这是一级标题
这是一个用于测试的段落。
这是二级标题
这是一个用于测试的段落。
这是三级标题
这是一个用于测试的段落。
这是四级标题
这是一个用于测试的段落。
这是五级标题
这是一个用于测试的段落。
这是六级标题
这是一个用于测试的段落。
基本块元素显示测试
这是一个普通段落(p元素)。 为了增加这个段落的长度,让我们说一说这个页面,它主要是用来测试 用户样式表的现实效果。 当然,你也可以用它来实现其它各种用途,比如,测试一下各种HTML元素在不同的浏览器里缺省的显示效果。你也可以用它来测试将HTML转换成其它格式,可以用这个页面看出是否有些元素是否转换错了。
这是另外一个段落。主要是来查看分开的两个段落的效果。接下来将会展示一些常用的标签元素查看效果。
div 标签. 部分作者可能会用 div 来代替段落使用。(结束 div.)此为一个块状引用元素,This is a block quotation containing a single paragraph. Well, not quite, since this is not really quoted text, but I hope you understand the point. After all, this page does not use HTML markup very normally anyway.
The following contains address information about the author, in an address element.
Lists
This is a paragraph before an unnumbered 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".
- One.
- Two.
- 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.
- Four. This is the last item in this list. Let us terminate the list now without making any more fuss about it.
The following is a menu list:
The following is a dir list:
- One.
- Two.
- Three. Well, probably this list item should be longer so that it will probably wrap to the next line in rendering.
This is a paragraph before a numbered 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".
- One.
- Two.
- 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.
- Four. This is the last item in this list. Let us terminate the list now without making any more fuss about it.
This is a paragraph before a definition list ( dl). In principle, such a list should consist of terms and associated definitions. But many authors use dl elements for fancy "layout" things. Usually the effect is not too bad, if you design user style sheet rules for dl which are suitable for real definition lists.
- 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
Text-level markup, in alphabetical order
- CSS (an abbreviation;
abbrmarkup used) - radar (an acronym;
acronymmarkup used) - bolded (
bmarkup used - just bolding with unspecified semantics) - Origin of Species (a book title;
citemarkup used) a[i] = b[i] + c[i);(computer code;codemarkup used)- here we have some
deletedtext (delmarkup used) - an octet is an entity consisting of eight bits (
dfnmarkup used for the term being defined) - this is very simple (
emmarkup used for emphasizing a word) - Homo sapiens (should appear in italics;
imarkup used) - here we have some inserted text (
insmarkup used) - type yes when prompted for an answer (
kbdmarkup used for text indicating keyboard input) Hello!
(qmarkup used for quotation)- He said:
She said
(a quotation inside a quotation)Hello!
- you may get the message Core dumped at times (
sampmarkup used for sample output) - this is not that important (
smallmarkup used) - overstruck (
strikemarkup used; note:sis a nonstandard synonym forstrike) - this is highlighted text (
strongmarkup used) - In order to test how subscripts and superscripts (
subandsupmarkup) work inside running text, we need some dummy text around constructs like x 1 and H 2O (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 lle, 1 st, and then some mathematical notations: e x, sin 2 x, and some nested superscripts (exponents) too: e x 2 and f(x) g(x) a+b+c (where 2 and a+b+c should appear as exponents of exponents). - underlined text (
umarkup used) - the command
catfilename displays the file specified by the filename (varmarkup used to indicate a word as a variable).
Some of the elements tested above are typically displayed in a monospace font, often using the same presentation for all of them. This tests whether that is the case on your browser:
This is sample text inside code markup- This is sample text inside kbd markup
- This is sample text inside samp markup
Links
This is a text paragraph that contains some inline links. Generally, inline links (as opposite to e.g. links lists) are problematic from the usability perspective, but they may have use as “incidental”, less relevant links. See the document Links Want To Be Links .
Forms
Pre
function $initHighlight(block, cls) {
try {
if (cls.search(/bno-highlightb/) != -1)
return process(block, true, 0x0F) +
` class="${cls}"`;
} catch (e) {
/* handle exception */
}
for (var i = 0 / 2; i < classes.length; i++) {
if (checkCondition(classes[i]) === undefined)
console.log('undefined');
}
}
export $initHighlight;
@font-face {
font-family: Chunkfive; src: url('Chunkfive.otf');
}
body, .usertext {
color: #F0F0F0; background: #600;
font-family: Chunkfive, sans;
}
@import url(print.css);
@media print {
a[href^=http]::after {
content: attr(href)
}
}
<style>body {width: 500px;}</style>
<script type="application/javascript">
function $init() {return true;}
</script>
<p id="title" class="title">Title</p>
<!-- here goes the rest of the page -->
@requires_authorization
def somefunc(param1='', param2=0):
r'''A docstring'''
if param1 > param2: # interesting
print 'Gre\'ater'
return (param2 - param1 + 1 + 0b10l) or None
class SomeClass:
pass
>>> message = '''interpreter
... prompt'''
CREATE TABLE "topic" (
"id" serial NOT NULL PRIMARY KEY,
"forum_id" integer NOT NULL,
"subject" varchar(255) NOT NULL
);
ALTER TABLE "topic"
ADD CONSTRAINT forum_id FOREIGN KEY ("forum_id")
REFERENCES "forum" ("id");
-- Initials
insert into "topic" ("forum_id", "subject")
values (2, 'D''artagnian');
Tables
The following table has a caption. The first row is in a thead, the second row is the tfoot, and the rest is in a tbody. The first column contain table header cells ( th elements) only; other cells are data cells ( td elements):
| Country | Total area | Land area |
|---|---|---|
| Country | Total area | Land area |
| Denmark | 43,070 | 42,370 |
| Finland | 337,030 | 305,470 |
| Iceland | 103,000 | 100,250 |
| Norway | 324,220 | 307,860 |
| Sweden | 449,964 | 410,928 |
HTML5 Elements
Details and Summary
This is the summary of the details
This is a paragraph within a details element, outside of the summary
Figure and Figcaption

This paragraph has a mark
Meter
Meter 1 of 4 2 of 4 61
