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!

7th Aug 2019, 3:18 AM
Toia Richardson
3 Réponses
+ 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
7th Aug 2019, 3:22 AM
Trigger
Trigger - avatar
+ 2
Dope! I have to work on this overthinking.
7th Aug 2019, 3:23 AM
Toia Richardson
+ 1
Yeah, i think they're the same. I usually do border last (before alt).
7th Aug 2019, 3:23 AM
Ginfio
Ginfio - avatar