font color on css and tables | html table font color
youcanaddclassreservation__fontcolortoyourtableandthenaddthisonyourcss:.reservation__fontcolortrth{color:red;}Itslikeapath,youcanreaditasfollows:allthethtags,insidetrtags,insideanelementofclassreservation__fontcolorgetthepropertiesdefined.Thispreventsanyotherthtagsoutsideatablefromthatclassfromgettingtheproperty,whichwouldhappenforexamplewith:th{color:red;}Ifyouwantedboththandtdtagstogetthesamepropertiesbutonlywheninsideaclasstable,youcoulddo:.reservation__fontcolortrth,.reservation__fontcol...
you can add class reservation__fontcolor to your table and then add this on your css:
.reservation__fontcolor tr th{ color: red; }Its like a path, you can read it as follows: all the th tags, inside tr tags, inside an element of class reservation__fontcolor get the properties defined.
This prevents any other th tags outside a table from that class from getting the property, which would happen for example with:
th{ color: red; }If you wanted both th and td tags to get the same properties but only when inside a class table, you could do:
.reservation__fontcolor tr th, .reservation__fontcolor tr td{ color: red; }I think the difference between those concepts is the key to understand how it works and applying it on different situations.
Good luck.