The HTML class attribute is used to specify a class for an HTML element.
Multiple HTML elements can share the same class. The class attribute is often used to point to a class name in a style sheet. It can also be used by a JavaScript to access and manipulate elements with the specific class name.
To create a class; write a period (.) character, followed by a class name. Then, define the CSS properties within curly braces {}:
Tip: The class attribute can be used on any HTML element.
Note: The class name is case sensitive!
⭐️HTML Tutorial for Beginners - Learn HTML for a career in web development. This HTML tutorial teaches you everything you need to get started.
⭐️This video is a part of this HTML Tutorial For Beginners In Hindi (With Notes)
Course Playlist: https://www.youtube.com/playlist?list=PLMfAHlb5o1xHATPNmU_KJfqGYAv1PWVTH
Want to learn more from me? Check out these links:
⭐️Courses: https://sharadkhare.org/courses/
⭐️Code Blog: https://sharadkhare.org/blog/
Follow me for more updates:
⭐️Facebook: https://www.facebook.com/datacodewithsharad/
⭐️ Linkedin: https://www.linkedin.com/in/sharadk5/
⭐️Table of Contents
00:00:00 Introduction
00:06:35 Use class in Stylesheet
00:09:36 HTML Class Span Property
00:14:50 Using Multiple classes in html
More Best Courses for learning:
⭐️HTML Tutorial For Beginners In Hindi (With Notes): https://www.youtube.com/watch?v=ullWlsr4DIg&list=PLMfAHlb5o1xHATPNmU_KJfqGYAv1PWVTH
#HTML #WebDevelopment #Coding #HTMLinHindi #HTMLTutorialinhindi
⭐️HTML is the language behind every website on the Internet! It's a markup language used to define the structure and content of web pages. It's the first language you need to learn if you want to become a web developer.