The Head, Body, and Form Tags

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:
Step - 01 : Create managed bean Car.java.
Step - 02 : Create Car Input Page using XHTML.
Step - 03 : Create Car Display Details Page using viewdetails.xhtml
Step - 04 : Output of Input Page.

Step - 05 : Output of Display Page. 

Thanks a lot for query or your valuable suggestions related to the topic.

Previous Post Next Post

Contact Form