0
It is safe to use this formula when modifying images?
I noticed that the src attribute is first, the alt atrribute is last, with all the actual modifications falling in between. Will I be safe to follow this formula whenever I want to modify an image? As long as the src comes first and the alt comes last, it doesn't matter the order of the mods in between, right? Are these the same: <img src="" height="" width="" border="" alt=""/> and <img src="" border="" height="" width="" alt=""/> ? THANKS!
3 Respostas
+ 2
Since those parameters act as keyword arguments, the order actually doesnt matter.
What you saw was probably a convension that programmers were following to give the code some structure.
Summary, it doesnt matter where you put them, just how you spell them
+ 2
Dope! I have to work on this overthinking.
+ 1
Yeah, i think they're the same.
I usually do border last (before alt).