The chemical reactions and pathways involving flavonols, a member of a class of vascular pigments formed by consecutive oxidative processes from the flavonoid intermediates flavanones and dihydroflavonols. Flavonols are the most widespread of the flavonoids and have a wide array of physiological activities.