Can i use "id"(id_headers not id selector) on <td>? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Can i use "id"(id_headers not id selector) on <td>?

In this table, can I use id for Monday, Tuesday, Wednesday because of their relationship between other cell of their row? I Know that "id" can only be used in <th> element. But in this table, left column <td>(Monday, Tuesday, Wednesday) also relates to those other <td>. https://code.sololearn.com/WjNzI0etxz2M/?ref=app

3rd Dec 2020, 2:11 AM
NUR ISLAM
NUR ISLAM - avatar
1 Answer
+ 7
Hii NUR ISLAM You can target tds with an id or class. Is that your question? I'd yes then You would give it an ID like you would any other element. ‘<td id = “Monday”> If it's not then kindly elaborate your question I'm a different way! Hope this helps ✌️
3rd Dec 2020, 4:53 AM
Piyush
Piyush - avatar