CSS stands for Cascading Style Sheets
CSS works with HTML to control the way the content is presented.
CSS is presentational layer for website, while HTML is structural layer.
"A website without CSS is like a cake without frosting"
An inline style may be used to apply a unique style for a single element.
To use inline styles, add the style attribute to the relevant element.
An internal style sheet may be used if one single page has a unique style.
Internal styles are defined within the <style> element, inside the <head> section of an HTML page
External style sheet can change the look of an entire website by changing just one file.
Each page must include a reference to the external style sheet file inside the <link> element.
The <link> element goes inside the <head> section.
The style sheet file must be saved with a style.css extension.
✅ Kod HTML lebih kemas
✅ Boleh guna satu CSS untuk banyak halaman
✅ Mudah diubah & diselenggara
✅ Lebih baik untuk prestasi & SEO
Terdapat fail CSS asing iaitu style.css yang diletakkan di dalam folder css