Edit in JSFiddle

new Element('div',{
  id: 'foo',
  styles: {
    'font-weight': 700,
    color: 'green'
  },
  events: {
    'click': function(){
      alert('Foo has been clicked!');
    }
  }
}).inject(document.body);