What is the purpose of the required attribute in the following code?
required
<input type="text" name="fullname" required>
Requires that the entered value has a specific length.
Ensures that the field has a value before submitting the form.
Transforms the input field into a dropdown list.
Validates the format of the entered text.