id Attribute
id Attribute
The id attribute specifies a unique id for an HTML element. It is mostly used for CSS Styling and JavaScript DOM manipulations.
Attribute Explanation:-
Value | Description |
---|---|
id | Specifies a unique id for the element |
Rules for naming id are:-
- Must contain at least one character
- Must not contain any space characters
Syntax:-
Its syntax is:- < element id="id" >
Code Explanation
All Tutorials related to HTML Global Attributes
accesskey Attribute
class Attribute
contenteditable Attribute
data-* Attributes
dir Attribute
draggable Attributes
hidden Attribute
id Attribute
lang Attribute
spellcheck Attribute
style Attribute
tabindex Attribute
title Attribute
translate Attribute