The code you are finding would be added to the page template code and can’t be used in elementor. Adding code to elementor is not a simple process and I can’t really help you much there. You should do a search on adding code to elementor. The Code Snippets plugin is may help you. You may need to either build a shortcode or some other way. There are likely other ways to do this if you search.