Week 7 - Session 2 - CSS (Cascading Style Sheets)

blog image source
CSS is a style sheet language that defines the presentation of a web page. It is used to add color, background images, and textures, and to arrange elements on the page. It is also used to enhance the usability of a website, you'd write this CSS:

p {
  color: red;
}

The declaration block contains one or more declarations separated by semicolons. Each declaration includes a CSS property name and a value, separated by a colon. A CSS declaration always ends with a semicolon, and declaration blocks are surrounded by curly braces.
  • CSS styles the HTML elements of a web page
  • Cascading Style Sheets are simple text files
  • Style sheets are made up of Rules
  • Rules are made up of selectors and declarations.
  • Declarations are made up of properties and values.



Learn CSS on Codecademy - https://www.codecademy.com/learn/learn-css

Popular posts from this blog

Week 9 to 12 - Learning with MCR Codes

Week 9 - Session 1 - The Internet, the Web, HTTP