CSS EVOLUTION
HTML language had certain limitations in case of style such as lack of uniform view of the web page. Different browser show the same text in different styles, to avoid this thing CSS which is the abbreviation of the CaseCading Style Sheet come into existence in 1996. There are two versions of CSS-P and CSS2 launches and working on the CSS3 is still going on and the other versions too.
INHERITANCE IN CSS
HTML language has different kinds of container element that includes the other elements. There are mainly two types of the elements in the HTML language.
- Parent Element
- Child Elements
PARENT ELEMENTS:
The elements which will have the child elements will consider as the Parent Element. For Example the Body Element has the different child elements like <P> for paragraph. etc.
CHILD ELEMENTS:
Child Elements are those elements which must be include in other elements. They are the descendent elements.
CSS will define the styles of all the elements like Parent, Children and descendant elements. The child or descendant elements can take the styles of their parent elements, irrespectively of the type of css in use. This is known as the INHERITANCE of styles.
No comments:
Post a Comment