Identify the purpose of fields programmatically

North York Moors National Park

From: WCAG 2.1 AA 1.3.5

To comply with WCAG 2.1, fields must identify what their purpose is programmatically. If done correctly, this allows browsers to help users fill in forms with known information, such as their name and email address.