是否应按照特定的顺序列出HTTP标签属性? [英] Is there a specific order that HTTP tag attributes should be listed in?

查看:81
本文介绍了是否应按照特定的顺序列出HTTP标签属性?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否应以特定顺序列出任何特定HTML标记的属性?订单有约定吗?例如,我在HTML严格页面中具有以下图像标签...

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" />

应该先列出src,还是列出高度,宽度等等?正确的顺序是什么?

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

谢谢!

推荐答案

没有,但无论如何,您都应该遵循自己的标准并遵循

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

这篇关于是否应按照特定的顺序列出HTTP标签属性?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆