How to apply materials by Tag?

Finding the right extensions… for ‘how to apply materials by tag’.
If someone need a more detailed explanation of the two methods provided to help learn and understand, write a comment into this thread.