The katui HTML showcase

Every part of the HTML and CSS subset on one page, drawn in real pixels.

Headings

Heading one

Heading two

Heading three

Heading four

Heading five
Heading six

Inline text

Text can be bold, strong, italic, emphasized, underlined, inserted, struck or deleted. Code reads as run(app), keys as Ctrl+C, and marked text stands out. Small, abbr, H2O and x2 flow with the line.
A line break starts a new line in the same paragraph.

A style attribute sets italic and underline.

Colors

name #rgb #rrggbb #rrggbbaa rgb() rgba()

Lists

  • The first item matches li:first-child
  • A plain item
  • An item with a list inside
    • Nested one
    • Nested two
  1. Odd items keep the color
  2. Even items match :nth-child(2n)
  3. Third
  4. Fourth

Flex layout

startof the row
centeredin the row
endof the row
A columnstacksits children
Six em tall
A width of 100% takes the rest of the row.

Boxes and alignment

Padding by sides, a thick border and large rounded corners.

Left aligned text.

Centered text.

Right aligned text.

An inline element in running text shows its background behind its glyphs. Give it a flex parent and it becomes a box with padding and corners:

rustterminalpixels

Selectors and the cascade

A class rule makes this paragraph red.

An id rule beats the class rule and turns this one green.

A style attribute beats both.

Quotes and preformatted text

A blockquote, for words someone else said.
fn main() {
    run(Counter::default())
}

Go back to the start page or read how the renderer works.