CSS attributes and their effect
Today I want us to discuss about css attributes and their contribution to the language. Without these attributes css can't do much.
But these attributes are not the much important tools for css. The styling language has bounce of elements to work with, but I bet, there are so many you will always skip when designing website.
So very quickly, let me list the attributes we are to discuss now.
Id attribute
class attribute
style attribute
Maybe along the way you might come across more attributes, but these are ones we are going to talk about.
Now let me explain one after the other.
The id attribute is css attribute or tool use for naming html element for separate styling purpose.
The class attribute does same work with the id attribute. You use the class attribute in place of id, same thing to class.
The style attribute actually seems like html attribute, but it actually belong to css.
The style attribute helps us style a single element within the element.
Why I said it seems like style attribute belong to html property family. We always make use of the style attribute when writing inline style code.
Comments
Post a Comment