Example 3: Text box control labeled using TITLE attribute

Best Practice Rating: Poor

Example Start

Up load file

Example End

HTML Source Code

<div class="file">
    <div class="label">Up load file</div>
    <input type="file" name="name" title="Up load file"/>
</div>

CSS Source Code

  <style type="text/css">
div.file div.label {
  margin: 0;
  padding: 0;
  margin-left: 20px;
  font-size: 100%;
}

div.file input,
div.file textarea {
  margin: 0;
  padding: 0;
  margin-left: 20px;
  margin-bottom: 1.25em;
}

  </style>