0
; at the end of an inline .html styling.
Is this required if there is only one style attribute?
2 Antworten
+ 2
no its not required if there is only one style attribute.
+ 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