Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a specific order that HTTP tag attributes should be listed in?

Should the attributes of any particular HTML tag be listed in a specific order? Is there a convention for the order? For example, I have the following image tag in an HTML strict page...

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

Should the src be listed first, or the height, or the width, etc? What is the proper order?

Thanks in advance!

like image 718
TroubledGuym Avatar asked Sep 28 '10 22:09

TroubledGuym


1 Answers

No there isn't, but anyway you should follow make your own standard and follow it

like image 123
armonge Avatar answered Oct 19 '22 00:10

armonge