Hi all The following scaffold creation form code... <%= start_form_tag :action => ''create'' %> <%= render :partial => ''form'' %> <%= submit_tag "Create" %> <%= end_form_tag %> ...creates this HTML colde: <form action="/en/bookings/create" method="post"> <!--[form:artist]--> <p><label for="artist_name">Name</label><br/> <input id="artist_name" name="artist[name]" size="30" type="text" /></p> <p><label for="artist_about">About</label><br/> <textarea cols="40" id="artist_about" name="artist[about]" rows="20"></textarea></p> <!--[eoform:artist]--> <input name="commit" type="submit" value="Create" /> </form> So far, so good. But as soon as an error is shown after submitting the form it produces this code: <form action="/en/bookings/create" method="post"> <div class="errorExplanation" id="errorExplanation"><h2>1 error prohibited this artist from being saved</h2><p>There were problems with the following fields:</p><ul><li>Name can''t be blank</li></ul></div> <!--[form:artist]--> <p><label for="artist_name">Name</label><br/> <div class="fieldWithErrors"><input id="artist_name" name="artist[name]" size="30" type="text" value="" /></div></p> <p><label for="artist_about">About</label><br/> <textarea cols="40" id="artist_about" name="artist[about]" rows="20">ASD</textarea></p> <!--[eoform:artist]--> <input name="commit" type="submit" value="Create" /> </form> This is NOT valid XHTML 1.1! Tidy tells me: line 67 column 113 - Warning: replacing <p> by <br> line 67 column 113 - Warning: inserting implicit <br> line 67 column 113 - Warning: <br> element not empty or not closed This is very annoying, because I really want to have only valid XHTML 1.1 code. What can I do against it? Thanks a lot and have a good time, Joshua -- Posted via http://www.ruby-forum.com/.