def get_paragraph_type(e):
    """Return paragraph type for outer elements <h> <p> and <div>."""
    
    if e.tag == 'p':
        p_type = 'p'
    elif e.tag in ('h1', 'h2'):
        p_type = e.attrib.get('class', '')
    elif e.tag == 'div':
        p_type = e.attrib.get('id', '') or e.attrib.get('title', '')
    else:
        p_type = ''
    
    return p_type