0

what is the mining of html selector in css ?

I saw css with such a defintion: body, html { padding : 0px; margin : 0px; height : 100%; } what is the meaning of "html" selector in the css ?

7th Apr 2017, 8:06 PM
זוהר צ'יפרוט
זוהר צ'יפרוט - avatar
4 Réponses
+ 9
*{ ... } Would be the same, * is the all selector. Selecting the HTML tag you are selecting all his child.
7th Apr 2017, 8:49 PM
Emore Anzolin
Emore Anzolin - avatar
+ 5
take a look at the structure of a HTML page and you will immediately see which tags that styling would be applied to <!DOCTYPE html> <html> <head> <title>Page Title</title> </head> <body> </body> </html>
7th Apr 2017, 8:48 PM
Burey
Burey - avatar
+ 2
As its name tell, it is the reference that is used to select the desired element. It can be the tag name, a class, an ID...etc. Anything that can represent the target element.
7th Apr 2017, 8:20 PM
CHMD
CHMD - avatar
+ 1
Thanks So actually it stifles the title, and general baseline style before going on to style other elements. Thanks for the answers.
8th Apr 2017, 10:05 AM
זוהר צ'יפרוט
זוהר צ'יפרוט - avatar