In macOS, tags provide you with an alternative way to organize your files and folders, and can make items in Finder easier to locate. To tag a file in Finder, simply right-click (or Ctrl-click) it and select one of the colored tags in the dropdown menu.
Alternatively, click on Tags... in the same dropdown menu, type in a custom name for a tag, press Enter, and a new tag will be created...