Intro To CSS
Intro To CSS
• CSS (Cascading Style Sheets) allows you to create great looking web
pages,
• A CSS rule is formed from:
• A set of properties, which have values set to update how the HTML content is
displayed, for example I want my element's width to be 50% of its parent
element, and its background to be red.
• A selector, which selects the element(s) you want to apply the updated
property values to. For example, I want to apply my CSS rule to all the
paragraphs in my HTML document.
External stylesheet
Internal stylesheet
Internal stylesheet
CSS declarations
https://developer.mozilla.org/en-US/docs/Learn/CSS/Introduction_to_CSS/Syntax
Selectors
Simple selectors
https://developer.mozilla.org/en-US/docs/Learn/CSS/Introduction_to_CSS/Simple_selectors
Type selector aka element selector
Class selector