def void_el(tag_type, *content):
    """Same as el but for void elements."""
    result = []
    try:
        if isinstance(content[0], dict):
            attrs_dict, content = content[0], content[1:]
            attrs_pairs = []
            for key in attrs_dict:
                attrs_pairs.append('%s="%s"' % (key, attrs_dict[key]))
            attrs_string = ' '.join(attrs_pairs)
            open_tag = '<%s %s>' % (tag_type, attrs_string)
        else:
            open_tag = '<%s>' % tag_type
    except IndexError:
        open_tag = '<%s>' % tag_type
    result.append(open_tag)
    for item in content:
        result.append(item)
    return result
