أنشئ حسابًا أو سجّل الدخول للانضمام إلى مجتمعك المهني.
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">