PDA

View Full Version : Learn css in few minutes



charlesprabhu
08-30-2024, 08:31 AM
CSS (Cascading Style Sheets) is a language used to style HTML elements. It controls how elements are displayed, including their layout, color, font, and more.

Here's a basic overview of how CSS works:

Selectors: These are used to target specific HTML elements. For example, p targets all paragraph elements, and .my-class targets elements with the class "my-class".
Properties: These are the attributes you want to set for the selected elements. Examples include color, font-size, background-color, and margin.
Values: These are the specific values you assign to properties. For instance, color: blue sets the color of the selected elements to blue.

MayaSmith
10-08-2024, 09:32 AM
Yes, chat gpt is the best for this purpose

michanik
11-09-2024, 09:17 AM
What is specificity in CSS, and how does it affect which styles are applied?