Why the string in ERb instead of in the HTML and only the data in ERb?

Looks like this HTML version is missing HTML tags.