There are two kind of type declaration mentioned in dojo documentation. They are data-dojo-type and dojotype.
For example,
dojoType="dojox.grid.DataGrid"
data-dojo-type="dojox.grid.DataGrid"
Both are working fine in all major browser.But i don’t understand, What is the difference between data-dojo-type and dojotype?
Where should i use dojoType? and where should i use data-dojo-type?
I think its a new syntax of the same thing, maybe its functionality is slightly different as it is adjusted for html5, you can read more here. Anyway from what i saw its recommended to use data-dojo-type…