<!DOCTYPE html>
<html>
<head>
<title>Classes and IDs Example</title>
<style>
.important {
font-weight: bold;
color: red;
}
#unique {
color: blue;
}
</style>
</head>
<body>
<p>This is a <span class="important">very important</span> message.</p>
<p id="unique">This is a unique element with its own styling.</p>
</body>
</html>
<!DOCTYPE html>
<html>
<head>
<title>Classes and IDs Example</title>
<style>
.important {
font-weight: bold;
color: red;
}
#unique {
color: blue;
}
</style>
</head>
<body>
<p>This is a <span class="important">very important</span> message.</p>
<p id="unique">This is a unique element with its own styling.</p>
</body>
</html>
Category
Description
Selector
Property
Represents the CSS attribute you want to modify, such as color, font-size, margin, etc. Many CSS properties allow you to control different aspects of an element's presentation.
Value
The setting applied to a property. For example, for the property color, the value could be red, #00ff00, or rgb(255, 0, 0).
Declaration Block
A group of property-value pairs enclosed in curly braces {}. Multiple declarations are separated by semicolons ;