tags:

views:

22

answers:

2

hello, I know it's very basic question and hope not so important, but i want to know the answer, please don't suggest only refer links.

we all daily face <input> type tag and their attributes (type, class, id, value, name, size, maxlength, tabindex etc..), I just want to know

  • is there any specific order required for attributes in <input> tag or can we use any order?
  • if there an order then what is it?
+3  A: 

You can use any sequence

pritaeas
+1  A: 

The order of attributes in HTML elements doesn't matter at all. You can write the attributes in any order you like.

Greg Hewgill
but what sequence should be prefer, in practical?i hope first of all `typ`e should b defined, then `class` and then `id`,`value` etc...
diEcho
It's up to you - just be consistent.
Dan Diplo
@Dan Thank you very much
diEcho