Categories
HTML

Id in Html

In this chapter we learn about ID in html.

ID is use to point out a unique element that may be used in css for styling or used in the javascript to change element behaviour.

An ID is used for the unique things like we have 5 headings in our page out of 5 we want 3 heading colors to be changed so we apply id on these heading and use css to change its color.

In css id is represent by the “#” and then the id name.

Note any name you choose for the id there’s no names compulsory for id’s.

Leave a Reply

Your email address will not be published. Required fields are marked *