0
Class
what is mean of class or what is it attribue? in any part of studying this attribue ?? HTML or HTMl5 or what ??
2 RĂ©ponses
+ 4
HTML:
<p id=craftMe>Thus is an random text</p>
OR
<p class=craftMe>Some random text</p>
CSS:
(if u use id , then add "#" at the beggining , if you use class , add "." at the beggining.
#craftMe{
color:blue;
background-color:aqua;
font-family:fantasy;
font-weight:bolder;
font-size:150%;
padding:20px;
}
+ 3
"class" and "id" are used in CSS to style the code you made in html.
It is like a keyword , and using it in css , you can stylish your code easier , faster , and more understandable.
// class and id are important stuffa.