HTML classes and ids

I am just wondering about the ids and classes in HTML; are they only useful when embedding CSS, or can they be useful in raw HTML as well? I am doing this exercise: https://www.codecademy.com/courses/learn-html/lessons/intro-to-html/exercises/attr-html?action=resume_content_item (Attributes)

They can also be useful in raw html, when you want to write your css code on the same html file.

Plus They can also be useful when you start using Javascript.

Just think of the classes and Ids as a unique Identifier for the html tags.

1 Like

Thank you very much!

1 Like

This topic was automatically closed 18 hours after the last reply. New replies are no longer allowed.