CSS Crash Course for Beginners -3

Welcome to part-3 of the series. You can find part-2 here.

Class & Id

We have the concept of class and id in CSS. They can be used to target any HTML element. The difference between both of them is that the same class can be used at different places, but we can use id only once. Let’s update our html from previous part to wrap the h1, h3 and p with a div with class of box-1.

Image for post
Image for post

You can read the rest of the blog from my site. The link for same is below.

You can find part-4 here.

Written by

UI Lead- ReactJS, JavaScript and everything in-between.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store