Search code examples
htmlspringjspspring-mvcjsp-tags

How to use HTML5 tags and attributes in spring MVC


Recently learnt HTML5 new tags and attributes. But how will i be able to use with Spring MVC. Till now all spring mvc jsp pages does not have support for HTML5.

For example if i want to use video/audio tags and attributes with spring MVC, how can i achieve it?

A simple example would be using placeholder attribute of html 5 with <form:input> tag of spring MVC. Would it be possible?


Solution

  • Spring doesn't care what tags you use in your jsp files. The browser does. Use a correct document type for HTML5 is all:

    <!DOCTYPE html>