You can export HTML code directly from Figma. Select the components that you want to get the HTML code for. and right click on component then click plugin's and select figma to html. you can copy the code.