Class
Meaning in web development, with examples
In web development, class means: An HTML attribute that gives an element one or more names, so that CSS and JavaScript can find and style a group of elements together.
In Turkish: sınıf, class
How it is used
You add, remove and toggle classes, and select them in CSS with a dot (.card). Naming systems such as BEM and utility-class frameworks such as Tailwind are built around classes. In JavaScript, class is also a keyword for object-oriented code.
Example sentences
Add an active class to the current menu item.
The button has five utility classes, but none of them sets the color.
Common collocations
- add a class
- toggle a class
- class name
- class selector
- utility class
Related terms
This word in other fields
The same English word can have a different meaning in another field:
More terms: HTML and Markup
Practise with graded reading
Reading at the right level is the fastest way to make new words stick. Pick free English books by level:
