0

; at the end of an inline .html styling.

Is this required if there is only one style attribute?

24th Jan 2017, 9:40 PM
Chad Christiansen
Chad Christiansen - avatar
2 Réponses
+ 2
no its not required if there is only one style attribute.
24th Jan 2017, 9:43 PM
Uran Kajtazaj
Uran Kajtazaj - avatar
+ 2
You can avoid the last semi colon ( ; ) at end of a declaration in inlined, as you can at end of a enclosed one by brackets: body { margin:0; background:silver // is valid because just before a closing brackets } p { text-indent:3ex; /* ... */ But good practice is to always put the semi colon, so you get good reflexes, and avoid need to search the missing semi colon, after appending style somewhere :P
25th Jan 2017, 9:14 AM
visph
visph - avatar