I'm learning basic web dev, and I've gotten to CSS flexbox. In the Mozilla introduction to flexbox, they introduce flex-order
. I understand what it is and how it works, but I don't understand why you'd ever use it. All I can imagine is a possible dynamic layout where using JS you change the order of things.
What advantage is there to using flex-order
over simply reordering your HTML tree? Wouldn't changing the visual order of things mess up users that rely on screen readers or other accessibility tools?
I can't find anything that explains a use case for this - I can only find things that explain what it does - so any clarification would be appreciated!
Thanks in advance :)