BLOG

Basic HTML

Create your first class

Lets have some fun creating your first class so you can start using CSS

Lets start off be creating a basic HTML skeleton as per out last session

To create a class we need to wrap it is something we call a {div}, we will cover this off in another blog subject, but for now lets doa code along.

Now that we have the div created as per below lets get into adding the class. We call the below function class="?" as below to create the class. The ? represents the name you will give the class so you can identify the class for your ready to style the class with CSS.


image of the HTML code based on the follow instructions

Now you have added the class, the most important part to to ensure you close the div > to the action can be completed.

Congrats, you have just made your first class and you are nearly ready to dive into CSS or SASSY SCSS.

x