The Head, Body, and Form Tags
- When the web developers try to develop a web application using a JSF 2, no need for using HTML Tags such as body and head for determining the browser body and head respectively.
- JSF 2 provides both of them as a separate components inside its component kit.
- The JSF h:head renders an HTML - HEAD tag in the browser.
- Similarly the h:body tag renders HTML - BODY tag in the browser.
- Below are the JSF h:head and h:body tags and its corresponding HTML tags.
- Example:
- Attributes for h:head and h: body
- Attributes for h:form
Example:
Tags:
Java