HTML is a source code file which contains elements form HTML language while SWF is the result of the FLA source code. SWF contains animations, objects, audio and other Flash data. You can only embed it into HTML with a specific code so that you can display the contents of the SWF file on a web browser. You can't convert these types of files between them.