COMPONENTS
Typography
Native HTML text elements receive their styling automatically. This page covers all six heading levels, body text, inline semantics, lists, quotations and technical notation, with the HTML beneath every example.
Usage
Markup: Native headings, paragraphs, lists and inline text
Behaviour: Document structure comes from your markup.
- Choose an element for its meaning, rather than its visual size. Use a logical heading hierarchy and a clear page heading; no typography classes are required.
- The heading specimen uses a separate document so its h1–h6 examples do not interrupt the documentation page's own outline. Its palette follows the browser colour preference.
- Theme, font and data-type defaults inherit from the parent. data-size configures controls, not body text. The optional prose class limits reading width; it is not required for text styling.
- Some elements use RevaCSS styling and others preserve browser-native presentation. Semantic markup does not automatically add application behaviour or accessible explanations; expand abbreviations in text when needed.
Component API and styling module · Inherited appearance settings
All six heading levels
h1 through h6 retain their native semantics and default styling. This isolated document has its own page heading; use levels according to the structure of your real content.
Paragraphs and readable text
Paragraphs use the inherited font, colour and line height. The optional prose wrapper provides a readable maximum width.
RevaCSS starts with ordinary HTML. Use paragraphs to organise related sentences into clear blocks of content.
A new paragraph gives the next idea room to breathe. Shared typography settings apply without repeated classes.
Supporting information: available features may vary by browser.
Importance, emphasis and visual annotation
strong expresses importance and em expresses stress. b draws attention, i distinguishes an alternate voice or term, u annotates, and s marks information that is no longer accurate.
Important: save your changes before leaving.
This setting is especially useful for shared themes.
The keyword is inheritance.
The term in situ means in its original place.
Spelling annotation: recieve should be receive.
Registration closes on Friday. Registration now closes on Monday.
Highlighted for review: confirm the delivery date.
Links and supporting text
Use real destinations and meaningful link labels. Small print remains readable and is not a substitute for essential instructions.
Start with the RevaCSS installation guide.
For a local section, see all six heading levels.
Terms apply to the current preview release.
Inserted and deleted content
Use ins and del to identify document edits. Their semantics differ from simply drawing a line through outdated text with s.
The meeting starts at 09:00 10:00.
Abbreviations and definitions
Expand abbreviations visibly on first use. The title attribute provides additional information but should not be the only explanation.
Cascading Style Sheets (CSS) controls presentation.
Inheritance is the process by which supported styling values pass from a parent to its descendants.
Unordered, ordered and nested lists
Use ul when order is not meaningful and ol for sequences. Nest another list inside its parent li; native numbering options need no helper classes.
- Light theme
- Dark theme
- Solid surfaces
- Glass surfaces
- Load the stylesheet
- Set shared defaults
- Add semantic HTML
- Override local exceptions
- Review the result
Terms and descriptions
Native dl, dt and dd express term/value associations. The separate description-list component is available when you need a responsive record layout.
- Theme
- The light, dark or system colour mode.
- Material
- The solid or glass surface treatment.
- Accent
- The shared highlight colour.
Block quotations, inline quotes and citations
blockquote contains a quotation, q marks an inline quotation, and cite names a work rather than a person's name. The text below is demonstration copy.
Good defaults leave room for your own decisions.
The example describes its approach as native by design
.
Code, keyboard input, output and variables
code identifies code, kbd keyboard input, samp program output and var a variable. Escape angle brackets when showing HTML as text.
Set data-theme="dark" on your page.
Press Ctrl + S to save.
The command reports Build complete.
The rectangle area is w × h.
<button type="button">Save</button>
<p>Your content stays in HTML.</p>Subscripts and superscripts
sub and sup support conventional notation. Provide an understandable text explanation when a formula needs more context.
Water has the chemical formula H2O.
A square metre is written m2.
The expression x2 means x squared.
Dates and machine-readable values
time supplies a machine-readable date or time; data associates visible text with an application value. CSS does not format dates or calculate values.
Published .
The call begins at .
Product: RevaCSS starter.
Contact information
address contains contact information for the relevant page or article. RevaCSS removes the default italic styling; use ordinary HTML links where appropriate.
Project repository and issue tracker
Thematic breaks and controlled line breaks
hr marks a thematic change, br creates a meaningful line break and wbr marks an optional wrapping opportunity. Use paragraphs and CSS spacing rather than repeated br elements.
The first topic ends here.
A new topic begins here.
A two-line label:
Native HTML and CSS
An optional break: verylong
Language, direction and ruby annotations
Set language and direction where needed. bdi isolates text with an unknown direction; bdo deliberately overrides direction. Ruby annotations retain native browser presentation.
Une interface claire et lisible.
Contributor: עדי.
Direction override demonstration: ABC.
東京