HI, I have seen that there are many people who use <div class="...."> i actually want to know about what is the main role of class in <div> or any other tags? and what all other properties can we use in <div>...
I have gone through it, but i wanted to know it in detail.... See. I am a.Net developer (I am still learning it.) ANd i wanted to know the use of class in <div > tag or any other tags..... That means when i use <div class="what is that we write it and where is it integrated from"> I hope my question has been understood to you now...
Perhaps the most powerful aspect of class div is that multiple classes can be applied to one HTML element. For example, you may wish to use two rules on one particular element like this: <div class="heading">Heading here</div> .heading { font-weight: bold; font-size: 140%; color: #600; }
the .heading { font-weight: bold; font-size: 140%; color: #600; } code is written within the html file or is it inherited from the .cs file.....?
DIV stands for division, it was used as replacement for table coding on HTML. Class and ID are the 2 types of attribute you can use to style DIV codes. Id can be used only once while class can be used repeatedly. Hope that helps.
You can use CSS class name ID name with <div> tag. Div is only for use stands. As per the HTML5 standard you can use now <section>, <head> etc.
It is inherited from the .css file if you are using an external file. Some people plonk the style tags right into the html but most people prefer to use an external style sheet such as style.css in a text editor and use LINK REL=StyleSheet HREF="main.css" TYPE="text/css" (with gt and lst at the beginning and end of course) in the head tag of your html page so you can style your pages simultaniously.