CSS - Basic Structure

Basic Structure

It starts with a tag, id, class, or attribute selector; followed by the declaration block (which contains the opening curly brackets, property, value and the closing curly brackets)

  • Property and Values are separated with a colon and ends with a semi-colon E.g. color: green;

Example

ADVERTISEMENTS

LEARNING IS A CONTINOUS PROCESS - PRACTICE MAKES PERFECT