Error code in project

I am taking the Ruby course here and every time I try to run it I get an error. I have even downloaded the included zip, and I get the same error with the instructor’s code. Here is the error:
syntax error, unexpected ‘<’, expecting end-of-input <!doctype html>

Below is the code. Any help you can supply would be appreciated. Thank you Don

require ‘sinatra’

get ‘/madlibs’ do
erb :questions

post '/madlibs' do
  animal = params[:animal]
  color = params[:color]
  person = params[:person]
  object = params[:object]
  adjective = params[:adjective]
  verb = params[:verb]
  "The #{adjective} #{animal} started to #{verb} because the #{person} ran away with the #{object}"


<!doctype html>
    <form method="POST" action="/madlibs">
      <input name="animal">
      <input name="color">
      <input name="person">
      <input name="object">
      <input name="adjective">
      <input name="verb">
      <input type="submit" value="Create Madlib">

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.