+ 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
3 Answers
+ 2
you must to give the table an ID or a CLASS
Then you can use them in CSS
+ 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!!!
+ 1
ok, but how write the code?