check for correct html element