HTML id Attribute

Sole purpose of using id attribute is to point the style attached to it. The HTML id attribute once specified is must be Unique for an element. With this ID, JavaScript is applied to it for manipulating the code into your own way.

Note : ID specified must be unique for a particular element and they are supported through all modern browsers too.

Using HTML id Attribute

Here is syntax and example for it

<element id="anything">





This is the text change

The value that are specifying to the id attribute must follow universal guidelines

  • No space between character must be placed
  • must one be character specified to make it unique
  • All values are Case-sensitive

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *