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

How to Tailor Your Marketing Strategy to Different Industries?

How to Tailor Your Marketing Strategy to Different Industries?

Expanding your business activity on a given market means that you want to be recognized from the very outset. When choosing an industry your brand is going to operate in, it’s worth paying attention to certain standards and background elements of this specific market. As you may know, not all advertising methods and activities will work for all industries. Take your time to consider what marketing strategy can be the most beneficial for your enterprise. In today’s entry, we’ll do our best to dispel your doubts.

Read more
10 Best Link Building Tools in 2020

10 Best Link Building Tools in 2020

Backlinks are one of the main Google ranking factors... That's the fact that we've all known for so long. I think we all realize how important it is to have high-quality incoming links from strong and non-spam domains. But how to conduct proper analysis and research of backlinks so that your link building strategy is absolutely top-notch and, what's even more important, effective? Luckily, there are several SEO tools to help you with that. In this article, I present the best, in my opinion, link building tools I use in my daily work. So let's get down to business!

Read more
My Website Has Been Hacked - What Should I Do?

My Website Has Been Hacked - What Should I Do?

Have you ever entered your page and noticed unwanted content? Have you seen the notification saying that “this website may have been hacked” displayed in the search engine under the site address? If you didn’t know what to do back then, in today’s entry we’ll give you some advice on how to react to such stressful situations.

Read more