Is there a specific order in which the attributes of the HTTP tags should be specified?

If the attributes of a particular HTML tag are listed in a specific order? Is there an agreement for an order? For example, I have the following image tag in a strict HTML page ...

<img src="http://example.com/media/graphics/border_bottom.png" class="border" height="5px" width="600px" alt="Lower Border" /> 

Should I first specify src, or height, or width, etc.? What is the correct order?

Thanks in advance!

+6
html conventions
source share
2 answers

No, no, but in any case, you must follow your standard and follow it.

+2
source

No, not at all, the order doesn't matter. I tend to put attributes in the same order on my pages, just for consistency, but not needed

0
source

All Articles