See the below difference in the definitions:
.jar files: The .jar files contain libraries, resources and accessories files like property files.
.war files: The war file contains the web application that can be deployed on any servlet/jsp container. The .war file contains Jsp, Html, JavaScript and other files necessary for the development of web applications.
Interested in Java? Check out this Java tutorial by Intellipaat.