HTML Intro

HTML Intro Quiz

HTML Intro Exercise

HTML Basics

HTML Basic Quiz

HTML Basic Exercise

HTML Advance

HTML Advance Quiz

HTML Advance Exercise

HTML Tags List

HTML Global Attributes

HTML Attributes


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




Its syntax is:- < element id="id" >

Code Explanation

All Tutorials related to HTML Global Attributes

All Sections related to HTML