Home >Web Front-end >CSS Tutorial >After reading this, everyone will understand the difference between class and ID selectors in CSS styles. Summary_Experience exchange
You can define your own selectors using the class selector and the identifier selector id.
The advantage of this is that you can represent the same HTML element differently depending on the class or id.
In CSS, the class selector is preceded by a half-width English period (.), and the id is preceded by a half-width English pound sign (#).
Looks like this:
#top { background-color: #ccc; padding: 1em } .intro { color: red; font-weight: bold; }
HTML with CSS connections use the attributes id and class. Like this:
This is my recipe for making curry purely with chocolate
Mmm mm mmmmm