Fastest way to use the custom element

Please how do I transfer html code with js and css to custom element code? Will it just be a copy and paste? What do I need to delete and add, thanks.