Movatterモバイル変換


[0]ホーム

URL:


MDN Web Docs

CSS Declaration

ACSS declaration is an abstract concept not exposed as an object in the DOM. It represents a CSS property and value pairing.

A CSS declaration has the following associated properties:

property name

The property name of the declaration, for examplebackground-color.

value

The value of the declaration as a list of component values.

important flag

Either set or unset.

case-sensitive flag

Set if the property name is defined to be case-sensitive according to the specification, otherwise unset.

Basic example

The following example shows a CSS rule with aCSS declaration block for the<h1> element. The CSS declaration block is the lines between the curly braces, it contains two CSS declarations. One forfont-style and another forcolor.

css
h1 {  font-style: italic;  color: rebeccapurple;}

Specifications

Specification
CSS Object Model (CSSOM)
# css-declarations

Help improve MDN

Learn how to contribute.

This page was last modified on byMDN contributors.


[8]ページ先頭

©2009-2025 Movatter.jp