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 ?
4 Réponses
+ 9
*{
...
}
Would be the same, * is the all selector.
Selecting the HTML tag you are selecting all his child.
+ 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>
+ 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.
+ 1
Thanks
So actually it stifles the title, and general baseline style before going on to style other elements.
Thanks for the answers.