0

What is use of class attribute in <td> tag?

<td class="selected">Play</td>

11th Nov 2017, 4:20 AM
Ashutosh Kumar
Ashutosh Kumar - avatar
5 Answers
+ 4
You can style it with CSS and do something cool with it with JavaScript.
11th Nov 2017, 4:54 AM
Learnsolo
+ 1
@John Added class attribute to make the table data bold now. 😅
11th Nov 2017, 5:55 AM
CalviŐ˛
CalviŐ˛ - avatar
0
I used it to process all td's in this challenge solution. https://code.sololearn.com/WK1Jvq3HBMyr/?ref=app
11th Nov 2017, 4:24 AM
John Wells
John Wells - avatar
0
https://code.sololearn.com/W3bF4ALm9byW/?ref=app
11th Nov 2017, 5:11 AM
CalviŐ˛
CalviŐ˛ - avatar
- 1
Calvin, you aren't using a class attribute in your code.
11th Nov 2017, 5:19 AM
John Wells
John Wells - avatar