r/ProgrammerAnimemes • • Apr 07 '20

beldia.css

Post image
875 Upvotes

6 comments sorted by

View all comments

Show parent comment

19

u/PinkiePieYay2707 Apr 07 '20

When I started learning css, I genuinely though adding semicolon to the last property is wrong. My reasoning was:
a) you are increasing size of your file for no reason
b) you are making the browser look for a start of another property (which obviously isn't there, so it decreases performance)

One day I noticed javascript is automaticaly adding a semicolon at the end of line... and css does similiar thing.