Hello @textabdulhere and welcome to forums!
Rather than responding to an old topic feel free to create a new one with your questions.
id allows you to do a couple things. One is that you can call it out in your css to style that element only. The difference between this and
class is that class can be assigned to multiple elements. Only one element should have an
id. So let’s say you have some elements, we’ll go with
<img> ‘s and they have a class of
class=“images”. Now in your css you styled all of the images using the
class (Maybe you centered and re-sized them) but maybe there’s one particular image that you want to have a border or maybe each image should have a different border color. Well if you change the
class they all change. So in this case you could style them individually using their
id is what is used for an internal link using the
<a> element. So to jump to that section you need to have an
id associated you it.
Hope that helps.