Compare armor, weapons and tools with your equipped gear right in the tooltip: stat changes, damage per second, durability and enchantments.
Diamond chestplate against the iron one you wear: armor, toughness, durability and enchantments.
Netherite axe against a diamond sword: more damage per hit, but less damage per second.
A leather tunic would lower your armor, so the lines turn red.
What you gain by putting on a helmet when the slot is empty.
With requireShift enabled the comparison waits until you hold Shift.