9jabaze - Entertainment | Webmaster | Browsing Tricks | Games/Apps Hub
Would you like to react to this message? Create an account in a few clicks or log in to continue.
Latest topics
» "Ofe Akwu" (Igbo Version Of Banga Soup) In Five Easy Steps
Difference between "div id" and "div class" in HTML EmptySun Jun 28, 2020 6:29 am by Adminkunlex

» Molokhia Soup: How Arabs Make Ewedu Soup (Pictures, Video)
Difference between "div id" and "div class" in HTML EmptySun Jun 28, 2020 6:26 am by Adminkunlex

» Iru: The Godmother Of All Condiments
Difference between "div id" and "div class" in HTML EmptySun Jun 28, 2020 6:22 am by Adminkunlex

» Naira Marley - As e dey go Mp3 + Lyrics
Difference between "div id" and "div class" in HTML EmptyFri Jun 26, 2020 11:00 pm by Adminkunlex

» Wande Coal - Naughty Girl Mp3 + Lyrics
Difference between "div id" and "div class" in HTML EmptyFri Jun 26, 2020 10:59 pm by Adminkunlex

» Ola-Ogrin-Omologo.mp3
Difference between "div id" and "div class" in HTML EmptyWed Jun 24, 2020 6:21 pm by Adminkunlex

» Chinko-Ekun-Ft.-Zlatan-Doings.mp3
Difference between "div id" and "div class" in HTML EmptyWed Jun 24, 2020 6:20 pm by Adminkunlex

» Mp3: Fireboy DML – New York City Girl Lyrics
Difference between "div id" and "div class" in HTML EmptyTue Jun 23, 2020 6:44 am by Adminkunlex

» Java Game: God of Combat.jar
Difference between "div id" and "div class" in HTML EmptyTue Jun 23, 2020 6:25 am by Adminkunlex

» Java Game: 1942 Air Combat.jar
Difference between "div id" and "div class" in HTML EmptyTue Jun 23, 2020 6:24 am by Adminkunlex

» Kung Fu Combat.jar
Difference between "div id" and "div class" in HTML EmptyTue Jun 23, 2020 6:20 am by Adminkunlex

» Java Game: Modern Combat 4: Zero Hour.jar
Difference between "div id" and "div class" in HTML EmptyTue Jun 23, 2020 6:20 am by Adminkunlex

» Java Game: Modern Combat 2: Black Pegasus.jar
Difference between "div id" and "div class" in HTML EmptyTue Jun 23, 2020 6:19 am by Adminkunlex

» NIKON Scholarship Program 2020 - Apply Now
Difference between "div id" and "div class" in HTML EmptyThu Jun 18, 2020 12:10 pm by shanimosta

» 2020 UTME: JAMB Top 10 Candidates Revealed
Difference between "div id" and "div class" in HTML EmptyWed Jun 17, 2020 4:32 pm by Adminkunlex

» Phillipo-Pray.mp3
Difference between "div id" and "div class" in HTML EmptyMon Jun 15, 2020 8:24 pm by Adminkunlex

» KashBwoy-Ft.-Joey-B-Maria.mp3
Difference between "div id" and "div class" in HTML EmptyMon Jun 15, 2020 8:23 pm by Adminkunlex

» Reejay-Kpayan.mp3
Difference between "div id" and "div class" in HTML EmptyMon Jun 15, 2020 8:22 pm by Adminkunlex

» Mr-K-Tinuke.mp3
Difference between "div id" and "div class" in HTML EmptyMon Jun 15, 2020 8:21 pm by Adminkunlex

» Caligerian-Ft.-Yovi-x-Terry-Apala-On- Point.mp3
Difference between "div id" and "div class" in HTML EmptyMon Jun 15, 2020 8:20 pm by Adminkunlex

The most tagged keywords



Difference between "div id" and "div class" in HTML

Go down

Difference between "div id" and "div class" in HTML Empty Difference between "div id" and "div class" in HTML

Post by Adminkunlex on Sun Jan 19, 2020 9:15 am

In addition to setting a style for a HTML element, CSS allows you to specify your own selectors called "id" and "class".
1.THE ID SELECTOR:
The id selector is used to specify a style for a
single, unique element.
The id selector uses the id attribute of the HTML
element, and is defined with”#".
The style rule below will be applied to the element
with id="abc":
#abc
{
Text-align: center;
Color: red;
}
2.THE CLASS SELECTOR:
The class selector is used to specify a style for a
group of elements. Unlike the id selector, the class
selector is most often used on several elements.
This allows you to set a particular style for many
HTML elements with the same class.
The class selector uses the HTML class attribute, and
is defined with a "."
In the example below, all HTML elements with
class="center" will be center-aligned:
.center
{
Text-align: center;
}
A class can be used several times, while an ID can
only be used once, so you should use classes for
items that you know you're going to use a lot. An
example would be if you wanted to give all the
paragraphs on your webpage the same styling, you
would use classes.Common id elements are things
like header, footer, sidebar. Common class elements
are things like highlight or external-link.


Source

Adminkunlex
Admin

Posts : 1451
Join date : 2019-06-08
Age : 20
Location : Osun State, Nigeria

https://9jabaze.forumotion.com

Back to top Go down

Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum