Sha256: 6d3173894ab5337a43222a60f05dde0ad1662c8a2e6547e4bccdc67971e0106f

Contents?: true

Size: 1.02 KB

Versions: 2

Compression:

Stored size: 1.02 KB

Contents

<!-- 
    Document   : labels
    http://www.w3.org/TR/html401/interact/forms.html#edef-LABEL
-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title></title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    
    <h3>Implicit label wraps text_field without for attribute. Click does not transfer focus to control</h3>
    <form id="wrap_without_for"action="" method="get">
      <p>
        <label>First Name<INPUT type="text" name="fn"></label>
      </p>
      <p>
        <label><INPUT type="text" name="ln">Last Name</label>
      </p>
    </form>
    
    <h3>Explicit Label For Item with Id. Click transfers focus to control associated by id</h3>
    <form id="label_for_id"action="" method="get">
      <p>
        <label for="first_nm">FirstName For</label><INPUT type="text" name="firstname" id="first_nm">
        <INPUT type="text" name="lastname" id="last_nm"><label for="last_nm">LastName For</label>
      </p>
    </form>
    
  </body>
</html>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
marekj-watirloo-0.0.2 test/html/labels.html
marekj-watirloo-0.0.3 test/html/labels.html