CSS Classes and ID


CSS is made of primarily two main types, ID's and Classes. These are the connection between the HTML and CSS. To differentiate between ID's and classes, a period is used before the class name, and a number sign before the ID name. Below are two examples that should be added to the CSS area of your script.

HTML Code:
.classname
#idname
Now, to allow the ID and class properties to work in HTML, we must add...



HTML Code:
class="classname" id="idname"
The codes above are to be added to an HTML element. And example of which is below.
HTML Code:
<div class="classname">Text here</div>
For more CSS property help, here is a great website to use. Click here

I hope this tutorial helps newcomers and users new to HTML and CSS. If you have any questions, Personal Message me, or post a comment.