Computer Science, asked by nayababedin3648, 4 months ago

explain ID selector and element selector with syntax​

Answers

Answered by manojkrsingh1171
1

Answer:

The id selector uses the id attribute of an HTML element to select a specific element. The id of an element is unique within a page, so the id selector is used to select one unique element! To select an element with a specific id, write a hash (#) character, followed by the id of the element.

Answered by Anonymous
22

\huge\bf\red{ID\ selector}

The id selector uses the id attribute of an HTML element to select a specific element. The id of an element is unique within a page, so the id selector is used to select one unique element! To select an element with a specific id, write a hash (#) character, followed by the id of the element.

\huge\bf\red{Element\ selector}

The element selector selects all elements with the specified element name.

Similar questions