New support for interactive form validation makes it easier to create forms with validation constraints that automatically validate user data when the form is submitted. This feature helps you communicate what kind of data your form needs, and helps users understand how to enter correct information.

The download attribute for anchor elements indicates that the link target is a download link that downloads a file, instead of a navigational link. When you click a a link with the download attribute, the target is downloaded as a file. Optionally, the value of the download attribute provides the suggested name of the file.

HTML Media Capture

Safari on iOS supports the HTML Media Capture form extension. Using this extension, you can create forms that capture live data from a camera on the user’s device for use as a file input. The accept attribute states whether to record a still photo or a video, and the capture attribute states which camera to use. By default, data is captured using the rear camera.

These examples request an image from the rear-facing camera:

<input id="standardImageCapture" type="file" accept="image/*" capture> <input id="rearImage" type="file" accept="image/*" capture="environment">

These examples request a video from the rear-facing camera:

<input id="standardVideoCapture" type="file" accept="video/*" capture> <input id="rearVideo" type="file" accept="video/*" capture="environment">

These examples capture data from the front camera: