creates a new HTML element using the specified tag name, attributes and content.
method doesn't return any data