EmbedCode
EmbedCode[obj] generates the code necessary to embed the object obj on a webpage.
EmbedCode[obj,"dest"] generates code for an external environment or language of type "dest".
EmbedCode[obj,"dest",dir] saves the generated code as files in the directory dir.
EmbedCode[obj,"dest",loc] saves the generated code as a file archive in the file location loc.
Please visit the official Wolfram Language Reference for more details and examples on core symbols.