Testing display of HTML elements(h1)

This is 2nd level heading(h2)

This is 3rd level heading(h3)

This is 4th level heading(h4)

This is 5th level heading(h5)
This is 6th level heading(h6)

Customizing headings

Fancy display heading With faded secondary text

This is a test paragraph.

Basic block level elements

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 user style sheets.
You can use it for various other purposes as well, like just checking how
your browser displays various HTML elements by default.
It can also be useful when testing conversions from HTML
format to other formats, since some elements can go wrong then.

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.

This is a div element. Authors may use such elements instead
of paragraph markup for various reasons. (End of div.)

The following contains address information about the author, in an address
element.

Inline text elements

You can use the mark tag to highlight text.

This line of text is meant to be treated as deleted text.

This line of text is meant to be treated as no longer accurate.

This line of text is meant to be treated as an addition to the document.

This line of text will render as underlined

This line of text is meant to be treated as fine print.

This line rendered as bold text.

This line rendered as italicized text.

Text utilities

Change text alignment, transform, style, weight, and color with our text utilities and color utilities.

Abbreviations

attr

HTML

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”.

  • Lorem ipsum dolor sit amet
  • Consectetur adipiscing elit
  • Integer molestie lorem at massa
  • Facilisis in pretium nisl aliquet
  • Nulla volutpat aliquam velit
    • Phasellus iaculis neque
    • Purus sodales ultricies
    • Vestibulum laoreet porttitor sem
    • Ac tristique libero volutpat at
  • Faucibus porta lacus fringilla vel
  • Aenean sit amet erat nunc
  • Eget porttitor lorem
  • 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.

Text-level markup

  • CSS (an abbreviation;
    abbr markup used)
  • radar (an acronym; acronym markup used)
  • bolded (b markup used – just bolding with unspecified
    semantics)
  • big thing (big markup used)
  • large size (font size=6 markup used)
  • Courier font (font face=Courier markup used)
  • red text (font color=red markup used)
  • Origin of Species (a book title;
    cite markup used)
  • a[i] = b[i] + c[i); (computer code; code markup used)
  • here we have some deleted text (del markup used)
  • an octet is an entity consisting of eight bits
    (dfn markup used for the term being defined)
  • this is very simple (em markup used for emphasizing
    a word)
  • Homo sapiens (should appear in italics; i markup used)
  • here we have some inserted text (ins markup used)
  • type yes when prompted for an answer (kbd markup used for text indicating keyboard input)
  • Use ctrl + p to open the Print dialog box.
  • you may get the message Core dumped at times
    (samp markup used for sample output)
  • this is not that important (small markup used)
  • overstruck (strike markup used; note:
    s is a nonstandard synonym for strike)
  • this is highlighted text (strong
    markup used)
  • In order to test how subscripts and superscripts (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).
  • text in monospace font (tt markup used)
  • underlined text (u markup used)
  • the command 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 sample text inside kbd markup
  • This is sample text inside samp markup
  • This is sample text inside tt markup

Links

Inline List

  • Lorem ipsum
  • Phasellus iaculis
  • Nulla volutpat

Description list alignment

Description lists
A description list is perfect for defining terms.
Euismod

Vestibulum id ligula porta felis euismod semper eget lacinia odio sem nec elit.

Donec id elit non mi porta gravida at eget metus.

Malesuada porta
Etiam porta sem malesuada magna mollis euismod.
Truncated term is truncated
Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus.
Nesting
Nested definition list
Aenean posuere, tortor sed cursus feugiat, nunc augue blandit nunc.

Links Want To Be Links.

Character test

The following table has some sample characters with
annotations. If the browser’s default font does not
contain all of them, they may get displayed using backup fonts.
This may cause stylistic differences, but it should not
prevent the characters from being displayed at all.

Hyphenation

In the following, a width setting should cause some hyphenation,
depending on support to various methods of hyphenation.

CSS-based hyphenation

Until recently the great majority of naturalists believed that species were immutable productions, and had been separately created. This view has been ably maintained by many authors.

JavaScript-driven hyphenation

Until recently the great majority of naturalists believed that species were immutable productions, and had been separately created. This view has been ably maintained by many authors.

Explicit hyphenation hints (soft hyphens)

Un­til re­cent­ly the great
ma­jor­i­ty of nat­u­ral­ists
be­lieved that spe­cies were
im­mu­ta­ble
pro­duc­tions,
and had been sep­a­rate­ly cre­at­ed.
This view has been ably main­tain­ed by many au­thors.


Code

var foo = function (bar) {
  return bar++;
};

console.log(foo(5));

Blockquotes

For 50 years, WWF has been protecting the future of nature. The world’s leading conservation organization, WWF works in 100 countries and is supported by 1.2 million members in the United States and close to 5 million globally.

From WWF’s website