what is ID and Class ?
ID means that unique identification has to be given. And one ID can be used only once. If you are making a website and if you create this website by giving ID, then if you have to change the background somewhere or you have to change the content somewhere, then you can do that very easily by targeting the ID. Now you are learning programming language, tomorrow when you will work in a company, then you will get an ID there, a unique identity is given to you and you think why this unique identity is being given to you, you get the ID because if If you make a mistake, then first of all it is seen that the work that has been done is done by which ID and by looking at that ID, it is found out who has done it, then when you are building the website, then if there If you do something wrong, you can target that thing by ID. And you can correct that thing without any problem, you can correct that thing in one line.
Class
The special thing about the class is that if you have created a professional website and after creating you feel that the background should be something else or the content should be something else, then you can make all these things a class and change its background. You can change the background and not the background, you have to type class="redbg" to create a class, you can apply as many classes as you want by giving space in it.
In today's blog, you do not know what is ID and what is class and when and where they are used, you are a program or you are learning program, you must do us and if you have any suggestion or any question So do tell him in the comments, we are ready to answer all your questions.
2 Comments