Index my website

I can’t figure out how to index my free website on search engines, can someone give me a hand? In the case of Google I don’t understand where to insert the TXT.

Free hosting doesn’t support TXT records, you’ll have to use a different verification method.

Trying to add your site in search console.? Trying to verifying your ownership?
If yes you can use HTML file upload or HTML tag option.
HTML file upload: Downlaod HTML File and upload in your htdocs folder
HTML tag: Add meta tag in your website that is given from google.