Is Robots.txt created when publishing?

Is the robots.txt file created and accessible somewhere from Elements?

Just found out the Robots settings but using PageSpeed Insights against my website, the tool says that my Robots.txt file is malformed. Here is a screenshot.

Elements does not create a robots.txt file by default, but you can easily create one in Elements. Here’s how:

It looks like it is scanning your HTML page, not a robots.txt file.