+ 2

Why is it compulsory for ("") to be used in an attribute eg. Border = "5" because I tried without using it and it gave nothing

20th Jun 2018, 10:37 AM
A D JOHN
A D JOHN - avatar
2 Respuestas
+ 6
Hi John snow ! "" is compulsory because some attributes can contain multiple values (e.g. class="clowns frogs lampshades car book") and a space separates attributes. Border ="5" doesn't work because it needs a unit of measure (e.g. px, em, %, etc.) I hope this helps! Keep up the good work! :)
20th Jun 2018, 10:42 AM
Janning⭐
Janning⭐ - avatar
+ 2
Thanks
20th Jun 2018, 10:54 AM
A D JOHN
A D JOHN - avatar