MooTools create elements

New Image

var my_img = new Element (img, {src:image.jpg, style:'width:200px, border:1px solid red' });

New Element

var my_box = new Element(div,{id:my_box}).inject(document.body,top);

top
bottom
after
before

New Anchor

var myAnchor = new Element('a', {
href: http://www.naprej.com,
class: myClass,
html: 'Click me!',
styles: {
display: block,
border: '1px solid black'
},
events: {
click: function(){
alert(clicked);
},
mouseover: function(){
alert(mouseovered);
}
}
});