İbrahim Halil Oğlakcı
4 min readJun 29, 2023

Essential CSS Terminology: 10 Key Terms Every Web Designer Should Know

CSS (Cascading Style Sheets) is a fundamental part of web design. Understanding key CSS terms and concepts is crucial for creating visually appealing and well-structured websites. In this article, we will explore 10 essential CSS terms that every web designer should be familiar with, along with practical code examples.

1. Selector:

Selectors determine which HTML elements the CSS rules apply to. For example, the following code sets the color of all <h1> elements to blue:

h1 {
color: blue;
}

2. Property:

CSS properties define the visual characteristics of the selected elements. For instance, you can change the font size of all <p> elements like this:

p {
font-size: 16px;
}

3. Value:

Values are assigned to CSS properties and determine how the selected elements should be styled. Here’s an example that removes the underline and sets the color of all links (<a> elements) to red:

a {
text-decoration: none;
color: #FF0000;
}

4. Declaration:

A CSS declaration consists of a property-value pair and is enclosed in curly braces. You can combine multiple declarations to form a CSS rule. Here’s an example that sets the margin and padding of all <h2> elements:

h2 {
margin: 10px;
padding: 20px;
}

5. Rule:

A CSS rule consists of a selector and one or more declarations. It defines the styling for specific elements on a web page. Here’s an example that styles a button with a specific class:

.button {
background-color: #333;
color: white;
padding: 10px 20px;
}

6. Class:

A class is a reusable identifier that can be assigned to multiple HTML elements. By applying a class, you can style multiple elements consistently. For example, the following code centers the text alignment of all elements with the text-center class:

.text-center {
text-align: center;
}

7. ID:

An ID is a unique identifier assigned to a single HTML element. IDs should be unique within a web page and are useful for styling specific elements or targeting them with JavaScript. Here’s an example that sets the background color and height of an element with the ID header:

#header {
background-color: #F0F0F0;
height: 100px;
}

8. Pseudo-class:

Pseudo-classes allow you to style elements based on their state or position in the document structure. For example, the following code changes the color of links when hovered over:

a:hover {
color: red;
}

9. Box Model:

The box model describes the structure of an element, including its content, padding, border, and margin. Understanding the box model is essential for creating well-spaced and visually pleasing layouts. Here’s an example that demonstrates the box model properties:

.box {
width: 200px;
height: 200px;
padding: 20px;
border: 1px solid #000;
margin: 10px;
}

10. Responsive Design:

Responsive design refers to creating websites that adapt to different screen sizes and devices. CSS features like media queries and flexible units enable designers to build responsive layouts. Here’s an example that applies a responsive design approach using a media query:

@media screen and (max-width: 600px) {
.container {
flex-direction: column;
}
}

By familiarizing yourself with these 10 essential CSS terms and their code examples, you’ll gain a solid foundation for understanding and applying CSS in your web design projects. Experiment with these concepts, explore additional CSS properties, and keep practicing to enhance your skills.

Rememler, CSS is a powerful tool that allows 
you to bring your design vision to life
on the web. Enjoy the process of creating
stunning and engaging websites with CSS!
İbrahim Halil Oğlakcı
İbrahim Halil Oğlakcı

No responses yet