Knowledge baseExam Center
ENEnglish
Choose language13

CKTIS / Knowledge base

Knowledge base

Programming syntax, operators and concepts. Find an explanation, explore an example and return to learning.

Entries: 5788

CSS

rem — a unit relative to the root font size

The rem unit expresses a length relative to the document root element’s computed font-size. It lets text sizes and spacing share one reference size, independently of the parent element’s font size.

Basic · CSS modules; structured CSSWG indexes reconciled with pinned MDN BCD; Chromium 152 scope gate, per-example verification still required
CSS

rex — root element x-height unit

The rex unit expresses a length relative to the root element's font x-height rather than the current element's font.

Intermediate · CSS modules; structured CSSWG indexes reconciled with pinned MDN BCD; Chromium 152 scope gate, per-example verification still required
CSS

ric — the root ideographic unit

The ric unit equals ic on the document’s root element. It sizes lengths using the root’s ideographic metrics rather than a descendant’s font size.

Intermediate · CSS modules; structured CSSWG indexes reconciled with pinned MDN BCD; Chromium 152 scope gate, per-example verification still required
CSS

rlh — root line-height unit

The rlh unit expresses a length relative to the root element’s line-height, not that of the element using it.

Intermediate · CSS modules; structured CSSWG indexes reconciled with pinned MDN BCD; Chromium 152 scope gate, per-example verification still required
CSS

s — the CSS second

The `s` unit represents seconds in CSS `<time>` values. A value of `0.5s` equals `500ms`. It can be used, for example, to specify transition durations and delays.

Basic · CSS modules; structured CSSWG indexes reconciled with pinned MDN BCD; Chromium 152 scope gate, per-example verification still required
CSS

svh — small viewport height unit

The svh unit equals 1% of the small viewport height, calculated assuming that retractable browser interface elements are expanded.

Basic · CSS modules; structured CSSWG indexes reconciled with pinned MDN BCD; Chromium 152 scope gate, per-example verification still required
CSS

svmax — the larger small-viewport dimension

The CSS length unit svmax equals 1% of the larger small-viewport dimension. It uses the viewport size with dynamically retractable browser interface elements expanded.

Basic · CSS modules; structured CSSWG indexes reconciled with pinned MDN BCD; Chromium 152 scope gate, per-example verification still required
CSS

svmin — smaller small-viewport dimension

The CSS length unit svmin equals 1% of the smaller small-viewport dimension. It scales an element relative to width or height, assuming that dynamically retractable browser bars are expanded.

Basic · CSS modules; structured CSSWG indexes reconciled with pinned MDN BCD; Chromium 152 scope gate, per-example verification still required
CSS

svw — small viewport width

The svw unit represents 1% of the small viewport width, calculated assuming that dynamically expanding browser interface elements are expanded.

Basic · CSS modules; structured CSSWG indexes reconciled with pinned MDN BCD; Chromium 152 scope gate, per-example verification still required
CSS

turn — angle unit

The `turn` unit expresses an angle as a number of complete revolutions. `1turn` equals `360deg`, and `0.25turn` is a right angle. Use it wherever the CSS syntax accepts an `<angle>`.

Basic · CSS modules; structured CSSWG indexes reconciled with pinned MDN BCD; Chromium 152 scope gate, per-example verification still required
CSS

vb — viewport block-axis unit

The vb unit represents 1% of the large viewport along the element’s block axis. That axis depends on writing-mode.

Intermediate · CSS modules; structured CSSWG indexes reconciled with pinned MDN BCD; Chromium 152 scope gate, per-example verification still required
CSS

vh — viewport height unit

The CSS unit vh represents 1% of the large viewport height. It makes a length depend on the browser viewport rather than the size of a parent element.

Basic · CSS modules; structured CSSWG indexes reconciled with pinned MDN BCD; Chromium 152 scope gate, per-example verification still required
CSS

vi — viewport inline-axis unit

The vi unit represents 1% of the large viewport’s dimension along the inline axis of the box it applies to. That box’s writing mode determines the axis.

Intermediate · CSS modules; structured CSSWG indexes reconciled with pinned MDN BCD; Chromium 152 scope gate, per-example verification still required
CSS

vmax — larger viewport dimension unit

The vmax length unit equals 1% of the larger dimension of the large viewport: its width or height. It scales an element relative to the longer axis, regardless of orientation.

Basic · CSS modules; structured CSSWG indexes reconciled with pinned MDN BCD; Chromium 152 scope gate, per-example verification required
CSS

vmin — the smaller viewport dimension unit

The vmin length unit equals 1% of the smaller dimension of the large viewport. It scales an element against the page viewport’s width and height, not its parent.

Basic · CSS modules; structured CSSWG indexes reconciled with pinned MDN BCD; Chromium 152 scope gate, per-example verification still required
CSS

vw — viewport width unit

The vw unit expresses a length relative to the large viewport width: 1vw is 1% of that width, independently of the parent's width.

Basic · CSS modules; structured CSSWG indexes reconciled with pinned MDN BCD; Chromium 152 scope gate, per-example verification still required
HTML

accept — a file-picker hint

`accept` tells the picker which file formats an `input type="file"` expects; it is not an upload security boundary.

Basic · HTML Living Standard
HTML

HTML term or value: accesskey

The `accesskey` attribute supplies keyboard-shortcut candidates for an element, but the browser, operating system, and keyboard layout decide the actual key combination.

Basic · WHATWG HTML Living Standard; index snapshot date recorded separately
HTML

action — the form submission URL

`action` names the form’s destination, but the submitting button can override it with its own `formaction`.

Basic · HTML Living Standard
HTML

alpha — transparency in a color control

`alpha` is a boolean attribute of `input type="color"` that, in the standard, allows selecting a color’s transparency component.

Intermediate · HTML Living Standard