DOM element identification pattern

1

What is the pattern of HTML identifier names, eg:

 <form id="alterar-nome-form" th:action="@{/conta/alterarnome}" th:method="put">
 </form>

Or

 <form id="alterarNomeForm" th:action="@{/conta/alterarnome}" th:method="put">
 </form>

Are there other standards?

    
asked by anonymous 24.09.2015 / 15:54

1 answer

2

There is no name-to-HTML conversion, but you may decide to follow some set of recommendations, such as Google

If we follow the example above, then the correct one would be alterar-nome-form

    
24.09.2015 / 16:50