I'm learning html xhtml css javascript and everything because i have no life can you help me?
The id Selector
i don't quite understand what this does....
You can also define styles for HTML elements with the id selector. The id selector is defined as a #.
The style rule below will match the element that has an id attribute with a value of "green":
#green {color: green}
The style rule below will match the p element that has an id with a value of "para1":
p#para1
{
text-align: center;
color: red
}
Do NOT start an ID name with a number! It will not work in Mozilla/Firefox.
The id Selector
i don't quite understand what this does....
You can also define styles for HTML elements with the id selector. The id selector is defined as a #.
The style rule below will match the element that has an id attribute with a value of "green":
#green {color: green}
The style rule below will match the p element that has an id with a value of "para1":
p#para1
{
text-align: center;
color: red
}
Do NOT start an ID name with a number! It will not work in Mozilla/Firefox.