Skip to main content
Journey Uncommon Logo
JourneyUncommon
mediumHTMLvalidation attrs required patternSingle-choice MCQ

An input has `pattern="\d{4}"` and is NOT marked `required`. The user leaves the field completely empty and submits. What happens with respect to the pattern constraint?

<input type="text" pattern="\d{4}">