Headings

Heading 1

Heading 2

Heading 3

Heading 4

Heading 5
Heading 6

Paragraphs

A paragraph (from the Greek paragraphos, “to write beside” or “written beside”) is a self-contained unit of a discourse in writing dealing with a particular point or idea. A paragraph consists of one or more sentences. Though not required by the syntax of any language, paragraphs are usually an expected part of formal writing, used to organize longer prose.

A paragraph (from the Greek paragraphos, “to write beside” or “written beside”) is a self-contained unit of a discourse in writing dealing with a particular point or idea. A paragraph consists of one or more sentences. Though not required by the syntax of any language, paragraphs are usually an expected part of formal writing, used to organize longer prose.

Blockquote

A block quotation (also known as a long quotation or extract) is a quotation in a written document, that is set off from the main text as a paragraph, or block of text.

It is typically distinguished visually using indentation and a different typeface or smaller size quotation. It may or may not include a citation, usually placed at the bottom.

Said no one, ever.

Lists

Definition list

Definition List Title
This is a definition list division.

Ordered List

  1. List Item 1
  2. List Item 2
    1. List Item 1
    2. List Item 2
      1. List Item 1
      2. List Item 2
      3. List Item 3
    3. List Item 3
  3. List Item 3

Unordered List

  • List Item 1
  • List Item 2
    • List Item 1
    • List Item 2
      • List Item 1
      • List Item 2
      • List Item 3
    • List Item 3
  • List Item 3

Details & Summary

Expand for details

Lorem ipsum dolor sit amet consectetur adipisicing elit. Cum, odio! Odio natus ullam ad quaerat, eaque necessitatibus, aliquid distinctio similique voluptatibus dicta consequuntur animi. Quaerat facilis quidem unde eos! Ipsa.

Address

Written by Jon Doe.
Visit us at:
Example.com
Box 564, Disneyland
USA

Tabular data

Table Caption
Table Heading 1 Table Heading 2 Table Heading 3 Table Heading 4 Table Heading 5
Table Footer 1 Table Footer 2 Table Footer 3 Table Footer 4 Table Footer 5
Table Cell 1 Table Cell 2 Table Cell 3 Table Cell 4 Table Cell 5
Table Cell 1 Table Cell 2 Table Cell 3 Table Cell 4 Table Cell 5
Table Cell 1 Table Cell 2 Table Cell 3 Table Cell 4 Table Cell 5
Table Cell 1 Table Cell 2 Table Cell 3 Table Cell 4 Table Cell 5

Code

Keyboard input: Cmd

Inline code: <div>code</div>

Sample output: This is sample output from a computer program.

Pre-formatted text

P R E F O R M A T T E D T E X T
! " # $ % & ' ( ) * + , - . /
0 1 2 3 4 5 6 7 8 9 : ; < = > ?
@ A B C D E F G H I J K L M N O
P Q R S T U V W X Y Z [ \ ] ^ _
` a b c d e f g h i j k l m n o
p q r s t u v w x y z { | } ~ 

Codeblock

A codeblock can be created by wrapping a code element with a pre element.

<html>
  <head>
    <title>Sample HTML Page</title>
  </head>
  <body>
    <h1>Hello, world!</h1>
  </body>
</html>

Inline elements

This is a text link.

Strong is used to indicate strong importance.

This text has added emphasis.

The b element is stylistically different text from normal text, without any special importance.

The i element is text that is offset from the normal text.

The u element is text with an unarticulated, though explicitly rendered, non-textual annotation.

This text is deleted and This text is inserted.

This text has a strikethrough.

Superscript®.

Subscript for things like H2O.

This small text is small for fine print, etc.

Abbreviation: HTML

This text is a short inline quotation.

This is a citation.

The dfn element indicates a definition.

The mark element indicates a highlight.

The variable element, such as x = y.

The time element:

Images

Plain <img> element

Photo of a kitten

<figure> element with <img> element

Photo of a kitten

<figure> element with <img> and <figcaption> elements

Photo of a kitten
Here is a caption for this image.

<figure> element with a <picture> element

Photo of a kitten

Meter

Sub sub-optimum

25 out of 100

Sub optimum

50 out of 100

Optimum

75 out of 100

Progress

Indeterminate progress bars can not really be styled, so I've left that alone. If you know of a way to get an animated indeterminate progress bar, please let me know!

If you need this kind of progress bar, I would suggest creating a loading bar component that includes the progress element for benefit of accessibility technology but have it visually represented with a styled div.

progress 50%

IFrame

By default, iframe and other embed containers like object and embed are left unstyled beyond the global reset. An .embed-wrapper class is provided to control the aspect ratio of the embedded material while filling the available width. The aspect ratio defaults to 16/9 but you can change this by adjusting the --aspect-ratio variable for that element.

The border added to this iframe is the result of an inline style. The aspect ratio on this iframe has also been adjusted to 2/1 as an example.

The page embedded here was from a test I was doing for the layout system included in this boilerplate! You can check it out here.

Form elements

Additional features such as validation and automatic required labels are included for forms structured so that each label and input pair are wrapped in a div with the form-field class.

<form>
  <div class="form-field">
    <label for="input__text">Text Input</label>
    <input id="input__text" type="text" placeholder="Text Input" required>
  </div>
<form>

If using a library for forms, you may want to delete the form styles from this boilerplate or heavily alter them.

Input fields

Select menus

Checkboxes

Legend

Radio buttons

Legend

Textarea

HTML5 inputs

Range