+ 1

I need help to learn

Hello. If, In the project I’ve more <table> in HTML and I want just to change some colors just in more specific <table>. How can I write the code in css to change just one, no all HTML tables

4th Aug 2020, 11:40 AM
GhostRecon
GhostRecon - avatar
3 Answers
+ 2
you must to give the table an ID or a CLASS Then you can use them in CSS
4th Aug 2020, 11:49 AM
Asror Aliqulov
Asror Aliqulov - avatar
+ 2
In the opening tag you can use class or id attribute. This is fallowing syntax: <table class="className" id="idName"></table> In the CSS: .className {}//this is class #idName {}//this is ID Thats all Good luck!!!
4th Aug 2020, 1:08 PM
Asror Aliqulov
Asror Aliqulov - avatar
+ 1
ok, but how write the code?
4th Aug 2020, 12:11 PM
GhostRecon
GhostRecon - avatar