Forum digitalis

2.2 Basics

Introduction

CSS can be applied in three ways: Syntax: A CSS rule consists of a selector and properties.

selector { property: value; } /* Example: */ p { color: red; font-size: 16px; }

Box Model

Every HTML element is treated as a rectangle consisting of: