+1 vote
in HTML by
Which of the following attribute is used to provide a unique name to an element?

i) class

ii) id

iii) type

iv) None of the above

1 Answer

0 votes
by

ii) id

The id attribute is used to specify a unique id for an element of the HTML document. It allocates the unique identifier which can be used by the JavaScript and CSS to perform certain tasks.

Related questions

+1 vote
asked Sep 29, 2021 in HTML by john ganales
0 votes
0 votes
asked Jun 4, 2020 in Data Handling by SakshiSharma
...