<html lang="en">
  <head>
    <meta charset="utf-8"/>
    <title>Basic controls: Task 1</title>
    <style>
      body {
        background-color: #fff;
        color: #333;
        font: 1em / 1.4 Helvetica Neue, Helvetica, Arial, sans-serif;
        padding: 1em;
        margin: 0;
      }

      * {
        box-sizing: border-box;
      }
    </style>
  </head>

  <body>
    <form>
      <h1>Log in Form</h1>
       <p>Required fields are followed by <strong><span aria-label="required">*</span></strong>.</p>
      <fieldset>
        <legend>Credentials</legend>
      <ul>
        <li>
          <label for="userId">
            <input type="text" id="userId" name="username">
                      <span>User ID </span>
             <strong><span aria-label="required">*</span></strong>
          </label>
        </li>
        <li>
          <label for="pwd">
            <input type="password" id="pwd" name="password">
            <span>Password </span>
             <strong><span aria-label="required">*</span></strong>            
          </label>
        </li>
        <li>
            <input type="submit" value="Log in" />
        </li>
      </ul>
      </fieldset>
    </form>
  </body>

</html>
Run Pen

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.