CSS (Cascading Style Sheet)
the different between id and class for styling using css is another easy part.
lets take a look....
<style>
#idclass {
color: red;
}
.normal_class{
color: blue;
}
</style>
<font id="idclass">This is styling using id</font>
<font class="normal_class">This is styling using class</font>
see? actually, its just the same. the different is just using dot "." for class or just use hash "#" for id.
Result:
This is styling using id
This is styling using class
No comments:
Post a Comment