Okay I know my question is very very basic and stupid. But I really wanted to know the reason behind it.
I make websites, I follow all the w3 rules. My HTML is valid. But this question hit me this morning.
In HTML we have an ID and a CLASS. Both serve the same functions. But a an ID is used only once and a CLASS is used for a group of elements.
For example:
<div id="menu">
<div class="menu-item"></div>
<div class="menu-item"></div>
<div class="menu-item"></div>
</div>
Can also be written as
<div id="menu">
<div id="menu-item"></div>
<div id="menu-item"></div>
<div id="menu-item"></div>
</div>
Both the above codes would produce the same result, right? I have made whole websites when I first started making websites and was not sure about this rule.
All of those sites were sold out, and none of them were following this rule. One of them being http://www.mmun.org.pk/
So yeah dont thumbs down on this question, I know I could google this too but I wont be able to discuss it with anyone on google.
Thanks :)