DEV Community

Cover image for What is CSS? (CSS basics 1/60)
Beey
Beey

Posted on

What is CSS? (CSS basics 1/60)

Understanding CSS

CSS, Known as Cascading Style Sheets is a way to style your webpages It is widely used in websites for positioning, Typography and more.

The file extension to use CSS is .css this is known as an external css file Which you will learn later in the series.

What is a CSS class

A CSS class, known as a Class declaration or selector is used to target elements with its class using: class="class-declaration-name" or className="class-declaration-name".

Why is CSS better on webpages

CSS is better on webpages because It improves UX and Styled UI looks more good than browser default styles.

Without styling you cant accurately control the position of your elements or anything else related to CSS because of this Users may not like your webpage unstyled hurting UX.

What is UX

UX Means User Experience. User experience(UX) Is important because if your User Experience(UX) is low or people are unhappy with your webpage less people will come and you may get deranked in SEO(Search Engine Optimization).

CSS lentience

CSS does try to be lentient at small errors like unknown CSS property, unknown variable or forgetting a ; tho sometimes it may make your css not work.

What is the latest CSS

There is no latest CSS version as CSS became a living standard in 2010–2011 so It is recommended to use the living standard instead of old CSS(CSS2) because CSS did use to be version numbered meaning it kept incrementing the version(1, 2) every update but this was stopped and the living standard CSS is better to use.

What are old CSS versions

Some old CSS versions include:

  • CSS1
  • CSS2
  • CSS2.1

What is the modern CSS version

The modern CSS version(Living Standard) is CSS3 which came after the now outdated, old CSS2.1

Recommendations on where to run CSS locally

Running CSS locally can be hard if you dont know the right options to pick.

My recommendation:

For macOS and in small teams - VS code

MacOS version must be above mojave

For Windows and in large teams - Visual studio/VS

Windows version must be Windows 10 version 1909 or higher

Top comments (0)