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 ?
4 Respostas
+ 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.
+ 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.
+ 1
cuz the css is compiled with the browser program
0
oh so <!doctype> is only in case of html , xml type documents ..... thank u both