Question: why we use xhtml in jsf?
Answer: xhtml files are generally used for JSF views defined using Facelets. This can be changed via configuration (e.g. see the javax. faces.