views:

13

answers:

0

Hello!

Is it "ok" to add attributes to various tags to use in JavaScript DOM parsing?

For example if I want to have required fields in a form, would it be a bad practice if I would do this:

<input type="submit" name="name" required="true"/>

Thank you.