Summary 3

Topic 1: CSS?

Web pages are styled using Cascading Style Sheets, or CSS. It outlines the proper way for HTML components to appear on displays and paper, among other mediums. By enabling control over the layout of several web pages at once using external stylesheets stored in CSS files, CSS saves work.

Topic 2: Structure and Syntax

A selector pointing to the HTML element to be styled and a declaration block with one or more declarations make up a CSS rule. Multiple declarations are separated by semicolons, and each declaration contains a CSS property name and a value, separated by a colon. The fundamental building block of CSS rules is the declaration block encircled by curly braces.

Topic 3: Selectors

To style particular HTML components, CSS selectors are utilized. Simple selectors (based on name, id, and class), combinator selectors, pseudo-class selectors, pseudo-elements selectors, and attribute selectors are the five types into which they can be separated. Element selectors (like p), id selectors (like #para1), and class selectors (like.center) are examples of simple selections that enable accurate targeting of HTML elements.