"----" is correctly converted into a <hr> element.
tidying up htmlelement.rb
introduced HtmlFormat#create_element method