shouldn't there be a unit (px or %) for border attribute value in table tag?the unit is mentioned in img tag but not in table tag | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

shouldn't there be a unit (px or %) for border attribute value in table tag?the unit is mentioned in img tag but not in table tag

30th Oct 2016, 3:54 AM
VRAJ
4 Answers
+ 3
The default unit is px.
30th Oct 2016, 9:04 AM
Zen
Zen - avatar
+ 2
It work for both
30th Oct 2016, 5:27 AM
Poh ChooHan
Poh ChooHan - avatar
0
Add border="1" as a table attribute. You can also change the 1 to another number.
30th Oct 2016, 8:36 PM
Lucas
0
thanks a lot everyone
1st Nov 2016, 8:30 AM
VRAJ