In CSS id is start with # symbol, as #idname{color:green;}
☛
In HTML id is defined as id='pagesecttion' but to execute need # symbole before it
as <a href='pagename.html#pagesection'>Click here to see result</a>
Click here to see result
after clicking you will see #pagesection with the same link.
☛
In JavaScript id is defind directly by giving name but execute with id attribute as id='idname'.
☛
The id attribute of an HTML tag can be used to uniquely identify any element within an HTML page so that we can link any
section or area inside page.
☛
While choosing value for id keep in mind some rules:
Must contain at least one character
Must not contain any space characters
Values are case-insensitive