Stylament 0.28.3

Text-level Semantics

These are elements for inline-level text semantics.

Related

Spec [external]

MDN [external]

Altered Baseline

sub

scss
sub {
  
}

Subscript.

Related

Spec [external]

MDN [external]

sup

scss
sup {
  
}

Superscript.

Related

Spec [external]

MDN [external]

Citation

cite

scss
cite {
  
}

Citation.

Related

Spec [external]

MDN [external]

Code

code

scss
code {
  color: svar(color-mark);
  background-color: svar(color-mark-contra);
  padding-inline: svar(spacing-inline-xs, svar(spacing-xs));
}

Inline code.

Related

Spec [external]

MDN [external]

Data

data

scss
data {
  
}

Machine readable data.

Related

Spec [external]

MDN [external]

time

scss
time {
  
}

Temporal data.

Related

Spec [external]

MDN [external]

Directionality

bdi

scss
bdi {
  
}

Bidirectional isolate.

Related

Spec [external]

MDN [external]

bdo

scss
bdo {
  
}

Bidirectional text override.

Related

Spec [external]

MDN [external]

Emphasis

em

scss
em {
  
}

Emphasis.

Related

Spec [external]

MDN [external]

strong

scss
strong {
  
}

Strong emphasis.

Related

Spec [external]

MDN [external]

Enhanced Semantics

b

scss
b {
  
}

Bring attention.

Related

Spec [external]

MDN [external]

i

scss
i {
  
}

Idiomatic text.

Related

Spec [external]

MDN [external]

mark

scss
mark {
  
}

Mark text.

Related

Spec [external]

MDN [external]

s

scss
s {
  
}

Strikethrough/obsolete text.

Related

Spec [external]

MDN [external]

small

scss
small {
  
}

Side-comments and small print.

Related

Spec [external]

MDN [external]

u

scss
u {
  
}

Unarticulated annotation.

Related

Spec [external]

MDN [external]

Generic

span

scss
span {
  // Don’t style the generic range!
}

Generic range.

Related

Spec [external]

MDN [external]

Input/Output

kbd

scss
kbd {
  color: svar(color-mark);
  background: svar(color-mark-contra);
  border: svar(stroke-width-1) solid svar(stroke-color-default);
  border-radius: svar(radius-xs);
  padding-inline: svar(spacing-inline-xs, svar(spacing-xs));
}

Keyboard input.

Related

Spec [external]

MDN [external]

samp

scss
samp {
  
}

Sample output.

Related

Spec [external]

MDN [external]

Line Breaks

br

scss
br {
  
}

Line break.

Related

Spec [external]

MDN [external]

wbr

scss
wbr {
  
}

Line break opportunity.

Related

Spec [external]

MDN [external]

Quotations

q

scss
q {
  
}

Inline Quotation

Related

Spec [external]

MDN [external]

Ruby

rp

scss
rp {
  
}

Ruby fallback parenthesis.

Related

Spec [external]

MDN [external]

rt

scss
rt {
  
}

Ruby text.

Related

Spec [external]

MDN [external]

ruby

scss
ruby {
  line-height: 2rlh;
}

Ruby annotation.

Related

Spec [external]

MDN [external]

Terminology

abbr

scss
abbr {
  
}

Abbreviations.

Related

Spec [external]

MDN [external]

dfn

scss
dfn {
  
}

Definition.

Related

Spec [external]

MDN [external]

var

scss
var {
  
}

Variable.

Related

Spec [external]

MDN [external]