3. Colours and text
ستتم ترجمة هذا المقال تلقائيًا. يُعرض بالإنجليزية حاليًا.
Colours can be a name such as red, a hex code such as #1e90ff, or rgb(30, 144, 255). color sets the text colour and background-color sets the background.
font-size changes text size. px is fixed pixels; rem is relative to the root font size, which makes text easier to scale.
عرض المثال
p {
color: #1e3a8a;
font-size: 1.1rem;
}
✍️ دورك الآن
Give the .note class a yellow background and a font size of 20px.