HTML

Dear users we are very sorry for the mix up, we were having some difficulties updating it with the problem of bots coming in to our blog, to keep on following up just click on follow, to keep on receiving notifications from us we promise to keep on keeping you updated

Today’s topic is The use of classes and id’s in html

We use classes and id’s To represent CSS codes, a dot is used to begin classes in CSS while a # is used to begin Id’s in CSS.

Examples:

<html>

<head>

<title>The use of classes and id’s</title>

<style>

.class{

background-color: #673AB7;

height: 50px;

width: 100%;

}

#id{

background-color: #673AB7;

height: 50px;

width: 100%;

}

</style>

</head>

<body>

</body>

</html>

As you can see # and . do the same thing, if you have and questions feel free to comment, if you want to be updated for FREE just follow our page.

Published by Victor Onwe

I am a programmer who is 11 years old

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

Create your website at WordPress.com
Get started
%d bloggers like this: