Search code examples
htmlconventions

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!


Solution

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