Register now or log in to join your professional community.
id can be used for one element but class can be used for more than one element the class preceded by "." and id can be preceded by "#"
ID should be placed only once in the page content while class can be used for multiple time as per required.
e.g <body id='HomePage'>
and <p class="RedPara">