Which attribute is used to name an element uniquely in HTML?
The id attribute specifies an unique id for an HTML element.
The id attribute is an important HTML element that plays a vital role in web development.
It is used to uniquely identify an element on a webpage, allowing developers to easily access and manipulate the content within it. This attribute can be applied to any HTML tag, including divs, images, links and forms.
Syntax :
<html> <body> <h1 id="heading">My First Heading</h1> <p>My first paragraph.</p> </body> </html>
The id attribute is used to name an element uniquely in HTML.
save
listen
AI Answer
Which attribute is used to name an element uniquely in HTML?
1
The id attribute specifies an unique id for an HTML element. The id attribute is an import…
asked
Apu
1 answers
2915
The id attribute specifies an unique id for an HTML element. The id attribute is an import…
Answer Link
answered
Apu
Container
</div>