<fieldset>
    <legend>Sign in to your account</legend>

    <div>
        <label for="userId">User ID</label>
        <input type="text" id="userId" name="userId">
    </div>

    <div>
        <label for="pwd">Password</label>
        <input type="password" id="pwd" name="pwd">
    </div>

    <input type="image" id="image" alt="Login"
           src="/media/examples/login-button.png" />

</fieldset>

Output