Can you describe CSS syntax?

Experience Level: Junior
Tags: CSS

Answer

The CSS rule-set consists of the 2 building blocks:

  • selector
  • declaration
Example of CSS syntax
selector {
	property-name: property-value;
	property-name2: property-value2;
}
  • The selector is responsible for defining which elements the CSS styles will be applied onto.
  • The declaration defines list of semicolon-delimited CSS properties.
  • Each CSS property consists of property name and value where property name is delimited from value by colon.

Comments

No Comments Yet.
Be the first to tell us what you think.
CSS for beginners
CSS for beginners

Are you learning CSS ? Try our test we designed to help you progress faster.

Test yourself

Chat

Oh, the operator is not available. Leave us your comments. We will answer all your questions as soon as possible.

Comments

Anonymous
Καλησπέρα.
Anonymous
the infinteis -3/15 so 1triition / infinet
Anonymous
e
Anonymous
<a href="https://inspirum.pl "
Anonymous
[url]https://inspirum.pl[/url]
LaceJaguar65
e
LaceJaguar65
e
LaceJaguar65
e
LaceJaguar65
e
LaceJaguar65
e
LaceJaguar65
e
LaceJaguar65
e
LaceJaguar65
e
LaceJaguar65
e
LaceJaguar65
e
LaceJaguar65
e
LaceJaguar65
e
LaceJaguar65
e
LaceJaguar65
e
LaceJaguar65
e
LaceJaguar65
e
LaceJaguar65
e
LaceJaguar65
e
LaceJaguar65
e
LaceJaguar65
e