Jakarta Faces HTML5 support
HTML5 is the latest version of the HTML specification. It includes several improvements over previous versions of HTML. Jakarta Faces includes several features to make Faces pages work nicely with HTML5. Jakarta Faces support for HTML5 includes the ability to develop our Jakarta Faces pages in HTML5 without using Faces-specific tags, along with the ability to add arbitrary HTML5 attributes to our Jakarta Faces pages.
HTML5-friendly markup
Through the use of pass-through elements, we can develop our Faces pages using HTML5, as opposed to using Faces-specific tags. Using HTML5 to develop our pages has the advantage that we can preview how our page renders in the browser without having to deploy our application to a Jakarta EE runtime. We can simply open the page in a web browser.
To do this, we need to specify at least one of the element attributes using the jakarta.faces
XML namespace. The following example demonstrates this approach in action: