CSS (Cascading Style Sheets) is the language that controls the style and appearance of web pages. With it, we can define colors, fonts, layouts, and many visual elements.
CSS is a standardized style description language that allows the separation of content and presentation. Thus, HTML is responsible for the structure, while CSS is responsible for the visual appearance.
A CSS rule always consists of two parts: a selector and a declaration block. The selector defines which HTML elements the rule applies to, while the declaration contains property–value pairs.
Here is a simple example that displays all paragraphs in blue:
CSS can be inserted into an HTML document in three ways: inline (directly to the element), internal (in the head section), or as an external stylesheet (in a separate file).
This example shows how to apply styles directly inside the HTML element.
This example uses an internal style block placed in the head section.
This example attaches a separate stylesheet to the document.
By using CSS we can create consistent, responsive, and easily maintainable websites. Separating style from content provides greater flexibility.
Some useful advice that helps in the effective use of CSS:
Please sign in to ask Lara about CSS Introduction.
Select Language
Set theme
© 2025 ReadyTools. All rights reserved.