Watch this video in context on Unity Learn:
https://learn.unity.com/tutorial/attributes
Attributes allow you to attach additional behavior to the methods and variables you create. In this video you will learn the format of attributes as well as how to use the « Range » and « ExecuteInEditMode » attributes.
Source