check presence of specified HTML tags/attr