CSS class
Back to Main Index
Class refers either to a special attribute found in HTML elements that allows selection of those elements in CSS, or a a collection of variables and functions working with these variables in PHP.
CSS Class
In HTML:
1 |
<a class="button" href="#">Link</a> |
The<a> element’s class attribute of “button” allows us to apply styling to that element, and any other element with the button class attribute.
In CSS:
1 |
.button{ height: 40px; background: #454545; color: #FFFFFF; } |
PHP Class
Similar to:
Class