Display tag

The "Display" tag is an NBT tag to display certain things on the item, such as lore or a custom name.

Custom Display Name
An item display name is the way a name is displayed for an item. In Survival, this is changed via an Anvil but it will always be in italics, and custom color codes are impossible to get. However with NBT we can get color and styling codes. It is good to note that in 1.16+, we can use hex codes as well as vanilla color codes, as opposed to only the normal vanilla color codes.



Lore
"Lore" is the text under the item name. This is normally never displayed in survival mode. It is good to note that Damage, Attack Speed, Enchantments and Attributes are not considered "Lore" but "Flags". These can be turned off with the HideFlag tag (There are Exceptions though).