opal create element code example Example: opal create element el = Element.new(:div) el.id = "title" p el# => #<Element [<div id="title">]>