Lesson 1 Introduction To CSS
Lesson 1 Introduction To CSS
Lesson 1 Introduction To CSS
Used to build the structure of the Used to make the web page more
web page presentable
HTML codes can never be found in CSS codes can be found in HTML
CSS files files.
Easy maintenance.
Search engines.
p { color: green; }
property value curly brace
curly brace colon semi-colon
CSS SYNTAX
A CSS structure consist of a selector and a declaration block.
➢ As inline has the highest priority, any styles that are defined
in the internal and external style sheets are overridden by
inline styles.
➢ Internal or embedded stands second in the priority list and
overrides the styles in the external style sheet.
➢ External style sheets have the least priority. If there are no
styles defined either in inline or internal style sheet, then
external style sheet rules are applied for the HTML tags.
Difference between the 3 types of CSS Styles
Activity 1.1
Activity 1.2
Activity 1.3