0

why we don't use something like <!Doctype ....> in css3 to declare that w r going to use css3 to style up the webpage ?

27th Jun 2016, 7:22 AM
Ankush Patil
Ankush Patil - avatar
4 Respuestas
+ 6
the HTML has upgraded through versions because of which we declare it's type by doctype or public class or simply HTML (by default 4). But css has no such things. CSS3 is just a library or group or you can say newly introduced css properties whose syntax is similar to the normal css properties. That's why they need no declaration.
14th Mar 2017, 3:21 PM
Siddharth Saraf
+ 2
<!DOCTYPE> the browser knows what type of document to expect. We add CSS stylesheet to HTML so there is no need to state what it is.
28th Jun 2016, 6:06 AM
beaTa
beaTa - avatar
+ 1
cuz the css is compiled with the browser program
27th Jun 2016, 9:37 PM
Matheus Prado
Matheus Prado - avatar
0
oh so <!doctype> is only in case of html , xml type documents ..... thank u both
28th Jun 2016, 6:17 AM
Ankush Patil
Ankush Patil - avatar