you cannot save all the file extension into one single file. Css is .css, Javascript is .js.
but you can link all those files into your html
<link rel="stylesheet" type="text/css" href="https://stackoverflow.com/questions/47306539/yourcssfile.css">
for javascript
<script src="https://stackoverflow.com/questions/47306539/yourjsfile.js"></script>
solved How to put HTML, CSS and JS in one single file