Question: why xhtml is used 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.