How do you require 2 text fields to match on a form? (email)

Hi, on my contact form I have an ‘Email’ field and a ‘Confirm Your Email’ field. What code do I need to add to require the ‘Email’ field to match exactly with the ‘Confirm Your Email’ field?

Thanks so much for any help you can provide!