title: How can I correctly set the required HTML attribute to an input tag into a TymeLeaf page?
body: <p>I am pretty new in Spring MVC and absolutly new in <strong>ThymeLeaf</strong>.</p>
  
  <p>So I am working on a web application that use <strong>TymeLeaf</strong> as view technology and I have to use this <strong>Jquery Validation Plugin</strong>: <a href="http://jqueryvalidation.org/" rel="noreferrer">http://jqueryvalidation.org/</a></p>
  
  <p>So I have used it in the past into JSP pages.</p>
  
  <p>As shown in the documentation: <a href="http://jqueryvalidation.org/documentation/" rel="noreferrer">http://jqueryvalidation.org/documentation/</a></p>
  
  <p>I have to add the <strong>required</strong> attribute to my input tag that have to be fill by the user, something like this:</p>
  
  <pre><code>&lt;input id="cemail" type="email" name="email" required&gt;
  </code></pre>
  
  <p>I tryied to do this thing into my <strong>TymeLeaf</strong> HTML page, in this way:</p>
  
  <pre><code>&lt;input id="nome" name="nome" type="text" th:value="*{nome}" required&gt;&lt;/input&gt;
  </code></pre>
  
  <p>But the problem is now I obtain this error message in the stacktrace console and the page is not renderd:</p>
  
  <pre><code>15:36:47,180 ERROR [org.thymeleaf.templateparser.ErrorHandler] (http-localhost/127.0.0.1:8080-3) [THYMELEAF][http-localhost/127.0.0.1:8080-3] Fatal error during parsing: org.xml.sax.SAXParseException; lineNumber: 88; columnNumber: 78; Attribute name "required" associated with an element type "input" must be followed by the ' = ' character.
      at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:196)
      at org.apache.xerces.util.ErrorHandlerWrapper.fatalError(ErrorHandlerWrapper.java:175)  
  </code></pre>
  
  <p>Why? What is wrong? How can I correctly set the <strong>required</strong> HTML attribute to an input tag declated into a <strong>ThymeLeaf</strong> page?</p>