First, you copy the Scratch embed link into a txt file. You then rename the file extension from txt to html. You rename that file to index.html, then put it into a zip file, which you then upload to Itch as a browser build.