Dom element factory.