Skip to main content

Page Italics Underline

Page Subheading with highlighting

Everything in header is centered


Italic Link ButtonBold Link Button →

Typography & semantics

The a tag stands for anchor from old hypertext speak. You can use abbr to abbreviate things. q is for creating a short quotation, great for getting smart quotes in without thinking about symbols, and also making the page more semantic. If you want to emphasise text you can use or em to do that, depending on the need for style or semantic emphasis.

Some title smaller

Big heading

Big quote

"Quote"

- Attribution

Citation of titles aren't usually visible cite the same is true of data. There's also few cases where you need ins (inserted text) or del (which is deleted text) unless you're tracking changes. Similarly the s tag specifies text that is no longer correct, accurate or relevant. The dfn tag represents the defining instance of a term in HTML, which could be useful for semantic expression.

Some microformats and search engines can understand your address:

address, street and postcode

Phrase tags

The human phrase tags are em which renders as emphasized text. and strong which defines important text.

Then we have a set of computer related tags, which we style all the same, they are samp, defines sample output from a computer program, kdb which defines keyboard input and var which defines a variable. These are super rare, so they all look the same to save writing styles.

em Renders as emphasized text

strong Defines important text

code Defines a piece of computer code

samp Defines sample output from a computer program

kbd Defines keyboard input

var Defines a variable like OK

Pre, samp & code

Then there's code which in this framework's opion is more like address and used as a block rather than an inline.

Defines a piece of computer code
The pre tag defines preformatted text. It's at the same level as p.
 — preformatted text
 — code block
 — computer output block
— inline computer output

the b, i, u & strong tags

b and strong are there for emphasis. We add basic typographical queues here. The i tag defines a part of text in an alternate voice or mood usually displayed in italic. The u tag represents some text that should be stylistically different from normal text, such as misspelled words or proper nouns in Chinese.

Use these elements only when there is not a more appropriate semantic element, such as: em, strong, mark, cite, dfn.

The small tag defines smaller text (and other side comments). This text contains subscript text. This text contains superscript text. Time is a tag for semanticly adding timestamps like for . var tag is a phrase tag. It defines a variable.

Use the mark tag if you want to highlight parts of your text.

Summary is the visible part of a details toggle details tag contains the content that is hidden.

Headings and paragraphs

That was a heading level 1, often the biggest heading. Really this is about creating good semantic page structure for accessibility.

h2 heading

That was a heading level 2, usually smaller than the previous heading. Really this is about creating good semantic page structure for accessibility.

h3 heading

That was a heading level 2, usually smaller than the previous heading. Really this is about creating good semantic page structure for accessibility.

h4 heading

That was a heading level 2, usually smaller than the previous heading. Really this is about creating good semantic page structure for accessibility.

h5 heading

That was a heading level 2, usually smaller than the previous heading. Really this is about creating good semantic page structure for accessibility.

h6 heading

That was a heading level 2, usually smaller than the previous heading. Really this is about creating good semantic page structure for accessibility.


Forms and field widgets

Text fields

Dates and times

Outputs - formula fields

=

Selects & option groups




Legend

Nothing to see... obvs!

Buttons


Lists

  • Unordered list item
  • Unordered list item
  • Unordered list item
  • Unordered list item
  1. Ordered list item
  2. Ordered list item
  3. Ordered list item
  4. Ordered list item
Definition term
Definition description
Definition term
Definition description
Definition term
Definition description
Definition term
Definition description

Media

Figure

The figure tag specifies self-contained content, like illustrations, diagrams, photos, code listings, etc.
The figcaption tag defines a caption for a figure element.

Picture

Placeholder image

SVG

Audio

Video

Meters & Progress bars

10 out of 100

IFrame

Canvas


Tables

The caption tag goes straight after table.
Month Savings
January $100
February $80
Sum $180

Internationalisation

BDO & BDI

Sometimes you need text to change direction mid-flow, this is what BDI is for, a great example is usernames.

عندما يريد العالم أن ‪يتكلّم ‬ ، فهو يتحدّث بلغة يونيكود. تسجّل الآن لحضور المؤتمر الدولي العاشر ليونيكود (Unicode Conference)، الذي سيعقد في 10-12 آذار 1997 بمدينة مَايِنْتْس، ألمانيا. و سيجمع المؤتمر بين خبراء من كافة قطاعات الصناعة على الشبكة العالمية انترنيت ويونيكود، حيث ستتم، على الصعيدين الدولي والمحلي على حد سواء مناقشة سبل استخدام يونكود في النظم القائمة وفيما يخص التطبيقات الحاسوبية، الخطوط، تصميم النصوص والحوسبة متعددة اللغات.

مَمِمّمَّمِّ

Which is useful for wrapping blocks of content with languages that flow in that direction.

Ruby

A ruby annotation is a small extra text, attached to the main text to indicate the pronunciation or meaning of the corresponding characters. This kind of annotation is often used in Japanese publications. The rp tag can be used to provide parentheses around a ruby text, to be shown by browsers that do not support ruby annotations. The rt tag defines an explanation or pronunciation of characters (for East Asian typography) in a ruby annotation.

(ㄏㄢˋ)

Page structural elements

Header

The header element represents a container for introductory content or a set of navigational links.A header element typically contains: one or more heading elements (h1 - h6), logo & branding etc. You can have several header elements in one document.

Note: A header tag cannot be placed within a footer, address or another header element.

Article

The article tag specifies independent, self-contained content. An article should make sense on its own and it should be possible to distribute it independently from the rest of the site.


DIVs don't do anything

As it should be 😅 I've left them alone, this means they can be containers, you can add styling or classes to them to build what you want.


Back to top