Starlit Daily

📚 › CSS: style and layout

1. Rules: selector and declarations

ستتم ترجمة هذا المقال تلقائيًا. يُعرض بالإنجليزية حاليًا.

A CSS rule has a selector and declarations inside braces. The selector picks the elements to style. Each declaration is a property, a colon, a value and a semicolon.

Example: h1 { color: navy; } picks every h1 and makes its text navy.

عرض المثال

h1 {
  color: navy;
}

✍️ دورك الآن

Make every h1 green.

← العودة إلى الدورة