HTML 5 is the latest version of the HTML specification. It includes several improvements over the previous version of HTML. JSF 2.2 includes several updates to make JSF pages work nicely with HTML5.
Through the use of pass-through elements, we can develop our pages using HTML 5 tags and also treat them as JSF components. To do this, we need to specify at least one of the
element attributes using the
http://xmlns.jcp.org/jsf namespace. The following example demonstrates this approach in action:
<!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:jsf="http://xmlns.jcp.org/jsf"> <head jsf:id="head"> <title>JSF Page with HTML5 Markup</title> <link jsf:library="css" jsf:name="styles.css" ...