CSS Classes


CSS stands for Cascading Style Sheets. It is used to bring style to websites. Things you can do with style sheets are but not limited to:

Change the scrollbar’s properties.
Work with any html tag in CSS.
and the list goes on.

In this article however, we are going to go over how to make pseduo classes in CSS.

Example 1.1

<style type=”text/css”>

.my_css {
font-face: Verdana;
font-weight: bold;
font-color: #000000;
font-size: 10px;

Let’s go over this code.

In CSS, you have the ability to make your own pseduo classes. To do so you merely use the syntax .your_class_name { …. }
The dot has to be used, as it is telling CSS your defining your own special class for use in your html pages. You then must name it something. The curly braces are neccessary, as it tells CSS this class properties are going to be between the two { }.

Now we can call the class in an html page.

Example 1.2

<body class=”my_css”>

That’s all to it! You just call the CSS class you made by using html’s built in class attribute.

I hope you found this article helpful.