Difference Between Id And Class In CSS
Thread TagsAdobe Illustrator Adobe InDesign Adobe Photoshop Android Development Android Programming Android Studio Automation Testing C / C++ Programming Career Options College Lounge css digital marketing Digital Marketing / SEO Fireworks Graphic Design Graphic designing Graphics Design Graphics Designing HTML? Illustrator Internship Training logo Design logo designing Magento Photoshop PHP Programming QA react-native Scroll Website SEO Single Page Website Stock Managment System Testing Typography UI UI/UX Development UI Design UI Designing UI development User Interface UX Design Web Designing Website Design Wordpress wp
Log in with your username and password
Register for free!
Registration at Smart Mentors is completely free and takes only a few seconds. By registering you’ll gain:
- Full Posting Privileges.
- Access to Private Messaging.
- Optional Email Notification.
- Ability to Fully Participate.
- Author Replies
- March 9, 2019 at 10:25 am #54594
1) In the CSS, a class selector is a name introduced before by a full stop (“.”) and an ID selector is a name introduced before by a hash character (“#”).
2) The distinction between an ID and a class is that an ID distinguishes and sets style to one and just a single event of an element while a class can be appended to any number of elements.
3) You can also characterize your own selectors as class and ID selectors.
4) The advantage of this is you can have a similar HTML element, yet present it diversely relying upon its class or ID.
You must be register. Registration is 100% free.to reply to this thread.Please or