<form>
    <div>
        <label for="title">Post Title</label>
        <input type="text" id="title" name="title" value="Enjoy Learning HTML">
    </div>
    <div>
        <label for="content">Post Content</label>
        <textarea id="content" cols="21" rows="5" name="content">
            To enjoy learning HTML....
        </textarea>
    </div>
    <button type="submit">Update Post</button>

    <!-- A hidden field representing a value that is not intended
         to be examined or manipulated by the user -->
    <input type="hidden" name="nonce" value="796c7766b1"> <!-- Used as a security token -->
</form>
Rendered Output
<form>
    <label for="user-password">User Password</label>
    <input type="password" id="user-password">
    <button type="submit">Submit</button>
    
    <!-- Used as a security token -->
    <input type="hidden" name="nonce" value="796c7766b1"> 
</form>
<form method="get" action="/search" role="search">
    <label for="user-search">Site Search</label>
    <input 
        type="search" 
        id="user-search" 
        name="query">
    <button type="submit">Search</button>
    
    <!-- Used for sending additional data: user location information -->
    <input type="hidden" name="user-locale" value="seoul">
</form>
<form action="/submit" method="post">
    <input type="hidden" name="user_id" value="12345">
    <button type="submit">Submit</button>
</form>
<input type="hidden" id="user_id" name="user_id" value="12345">
<button id="submit-button">Submit</button>

<script>
    document.getElementById("submit-button").addEventListener("click", function() {
        const userId = document.getElementById("user_id").value;

        fetch("/submit", {
            method: "POST",
            headers: {
                "Content-Type": "application/x-www-form-urlencoded",
            },
            body: `user_id=${userId}`
        }).then(response => {
            return response.json();
        }).then(data => {
            console.log(data);
        });
    });
</script>
<input type="hidden" name="session_token" value="abcdefg">