这是一级标题
这是一个用于测试的段落。
这是二级标题
这是一个用于测试的段落。
这是三级标题
这是一个用于测试的段落。
这是四级标题
这是一个用于测试的段落。
这是五级标题
这是一个用于测试的段落。
这是六级标题
这是一个用于测试的段落。
这里是页面的header
部分
这是一个用于测试的段落。
这是一个用于测试的段落。
这是一个用于测试的段落。
这是一个用于测试的段落。
这是一个用于测试的段落。
这是一个用于测试的段落。
这是一个普通段落(p
元素)。
为了增加这个段落的长度,让我们说一说这个页面,它主要是用来测试用户样式表的现实效果。
当然,你也可以用它来实现其它各种用途,比如,测试一下各种HTML元素在不同的浏览器里缺省的显示效果。你也可以用它来测试将HTML转换成其它格式,可以用这个页面看出是否有些元素是否转换错了。
这是另外一个段落。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.
div
element. Authors may use such elements instead
of paragraph markup for various reasons. (End of 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.
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".
The following is a menu
list:
The following is a dir
list:
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".
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.
abbr
markup used)acronym
markup used)b
markup used - just bolding with unspecified
semantics)cite
markup used)a[i] = b[i] + c[i);
(computer code; code
markup used)del
markup used)dfn
markup used for the term being defined)em
markup used for emphasizing
a word)i
markup used)ins
markup used)kbd
markup
used for text indicating keyboard input)Hello!(
q
markup used for quotation)She said(a quotation inside a quotation)Hello!
samp
markup used for sample output)small
markup used)strike
markup used; note:
s
is a nonstandard synonym for strike
)strong
markup used)sub
and
sup
markup) work inside running text, we need some
dummy text around constructs like x1 and H2O
(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: Mlle, 1st, and then some
mathematical notations: ex, sin2 x,
and some nested superscripts (exponents) too:
ex2 and f(x)g(x)a+b+c
(where 2 and a+b+c should appear as exponents of exponents).tt
markup used)u
markup used)cat
filename displays the
file specified by the filename (var
markup
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 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.
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 |
This is a paragraph within a details
element, outside of the summary
This paragraph has a mark