<form action="submit_url" method="get" class="form-example">
    <div class="form-example">
        <label for="user-name">Name</label>
        <input type="text" id="user-name" name="user-name" required>
    </div>
    <div class="form-example">
        <label for="user-email">Email</label>
        <input type="email" id="user-email" name="user-email" required>
    </div>
    <button type="submit">Submit</button>
</form>
Rendered Output
<form action="submit_url">
    <label for="user-name">Name</label>
    <input type="text" id="user-name" name="user-name">
    <button type="submit">Submit</button>
</form>
<form action="submit_url" method="post">
    <label for="user-name">Name</label>
    <input type="text" id="user-name" name="user-name">
    <button type="submit">Submit</button>
</form>
<h3>Validation Is Performed</h3>
<p>Checks whether a URL is entered in the correct format</p>
<form>
    <label for="user-url">Website URL</label>
    <input type="url" id="user-url" name="user-url">
    <button type="submit">Submit</button>
</form>

<h3>Validation Is Not Performed</h3>
<p>Does not check whether a URL is entered in the correct format</p>
<form novalidate>
    <label for="user-url-1">Website URL</label>
    <input type="url" id="user-url-1" name="user-url-1">
    <button type="submit">Submit</button>
</form>
Rendered Output Test it yourself by entering a URL and checking whether validation is performed!
Note! If you do not enter a URL, the form is submitted without validation.
<h3>Checks for the <code>required</code> Attribute</h3>
<p>Checks whether the <code>required</code> attribute is present</p>
<form>
    <label for="user-name">Name</label>
    <input type="text" id="user-name" name="user-name" required>
    <button type="submit">Submit</button>
</form>

<h3>Does Not Check for the <code>required</code> Attribute</h3>
<p>Does not check whether the <code>required</code> attribute is present</p>
<form novalidate>
    <label for="user-name-1">Name</label>
    <input type="text" id="user-name-1" name="user-name-1" required>
    <button type="submit">Submit</button>
</form>
Rendered Output Test it yourself to see whether the required attribute is checked!
<form action="submit_url" method="post" target="_blank">
    <label for="user-name">Name</label>
    <input type="text" id="user-name" name="user-name">
    <button type="submit">Submit</button>
</form>
<form action="submit_url" method="post" enctype="multipart/form-data">
    <label for="user-file">File Upload</label>
    <input type="file" id="user-file" name="user-file">
    <button type="submit">Submit</button>
</form>