1.

What is an ID selector?

Answer»

ID selector is a type of CSS selector that selects HTML elements using a specific ID attribute. The ID is defined to uniquely identify an element. THUS, there should not be more than one element within a page, having the same ID.

ID selectors are REPRESENTED as #idName.

For example, the below HTML element will have the ID selector as #footer.

<div id=“footer”> This is the footer </div>




Discussion

No Comment Found