How to add category and tag H1 titles for question tags and category pages?

Tag and category pages have no title and H1 which is so negative for SEO plus user does not see any title could you please provide us with proper queries and functions in order to optimize archive pages ?