Ruby Building Web Apps with Sinatra ERB Templates Root Path

Why isn't this code working?

This code worked during the workspaces follow along but for some reason isnt working in the challenge

hello.rb
require "sinatra"

get ("/") do
  "<h1>Welcome!<h1>"
end

1 Answer

Jennifer Nordell
MOD
Jennifer Nordell
Treehouse Moderator

Hi there! You're doing terrific, but you forgot one tiny thing. You started the h1 with an open <h1> tag, but you ended it with another open h1 tag <h1>. You should end it with a closing h1 tag which would be </h1>.

Like this:

<h1>insert your text here</h1>

Hope this helps! :sparkles: