font-family: "Times New Roman";
I was trying to learn CSS at w3schools.com. I am seeing that normal style tags look like the above. I then came across a CSS file in one of my company's projects that looks like this:
.tableBorder td, .grid td
border: 1px solid #ccc
1) Why does it begin with a dot? (.tableBorder). Why not just tableBorder?
2) When it comes to naming the style, doe sit matter if you type .tableBorder vs. tableBorder (without the dot) -- Is there a syntax you're suppose to follow or is it loose?
3) What is the td
after .tableBorder? I know it stands for "table data", but why is it there. Is that short-hand so you don't have to create a duplicate style block for td
4) Why is there a comma after the td, followed by .grid?