refactoring to make checkpoint property logic for html tags more generic