CSS

What is CSS? – Definition

CSS (Cascading Style Sheets) is a style sheet language that describes the style of the HTML document.  It describes how HTML elements are displayed on a page. CSS saves a lot of work as it may control the layout of multiple pages at once. Style formatting is usually saved in a separate .css file. Thanks to this, you can modify the layout of the whole site by changing only one file.

CSS Syntax

What is CSS

  • The selector indicates the HTML element that you intend to style.
  • The declaration block consists of one or several declarations, all of which are always separated by semicolons.
  • All declarations contain the CSS property name and values which are separated by colons.
  • Declarations always end with a semicolon, and declaration blocks are surrounded by curly brackets.

How to Change Color with CSS?

CSS definition

In the above example, “p” is the selector, which indicates the element we style, i.e. paragraph (<p>). “Color” is a property whereas “green” is its value. In this way, all <p> elements will have green text.

 

Was this definition helpful?
(0)
Author
Delante is an online marketing agency specialized in generating website traffic from search engines and paid ads (SEO / SEM). Over 80% of our clients are from rapidly growing e-commerce industry.

RECENTLY ON OUR BLOG

Ahrefs vs SEMrush - Which SEO Tool to Choose?

Ahrefs vs SEMrush - Which SEO Tool to Choose?

If you are working in SEO, whether in an agency or as a freelancer, you have probably heard more than once of Ahrefs and SEMrush. These two tools are, without a doubt, the biggest players in SEO right now. What features do they offer and which of them is a better solution for you? In this article, I will compare the two most popular SEO tools - Ahrefs and SEMrush.

Read more
Step by Step: How to Impress Your Boss When Choosing SEO Agency?

Step by Step: How to Impress Your Boss When Choosing SEO Agency?

What to do if SEO is black magic for you and your boss wants to reach top positions in the search results? How to choose an SEO agency that won’t burn your budget and will help you rank higher on Google? Don’t worry - there is a way to do it. In today’s entry, we’ll give you a step-by-step guide on how to select an SEO agency that your supervisor will be delighted with.

Read more