I am learning HTML and CSS from a book and I've faced a problem with connecting between the ids and classes, can any one answer me when to use them?
<p id=”footer”>Please steal this page, it isn’t copyrighted in any way</p>
<p class="guarantee">
The book said : Giving an element an id is similar to adding an element to a class. The only differences are that the attribute is called “id”, not “class”, an element can’t have multiple ids, and you can’t have more than one element on a page with the same id. but still not understand when to use them :P thanks guys