User:SignpostMarv/sandbox/hCaptcha

From Microformats Wiki
< User:SignpostMarv
Revision as of 16:55, 12 August 2007 by SignpostMarv (talk | contribs) (randomly off the top of my head)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Draft Specification

Editor/Author

SignpostMarv

Implicit markup

The class value captcha applied to any non-data submission element implies that this element contains captcha content (e.g. a, img, object).

The class value captcha applied to a data-submission element implies that this element is for indicating the captcha response (e.g. input, textarea, select)


Explicit markup

The class value captcha applied to any non-data submission element implies that this element contains captcha content (e.g. a, img, object).

The class value captcha-response applied to any element implies this element is for indicating the captcha response.

Implementation Examples

<form>
  <label for="foo"><img class="captcha" src="http://example.com/captcha.png" alt="Follow the link after this image for an audio captcha" title="Captcha"> <a class="captcha" href="http://example.com/captcha.wav">audio captcha</a></label> <input id="foo" type="text" />
</form>
<form>
<fieldset>
  <div class="captcha"><img class="captcha" src="http://example.com/captcha2.png" alt="Follow the link after this image for an audio captcha" title="Captcha"> <a class="captcha" href="http://example.com/captcha2.wav">audio captcha</a></div>
  <ul>
      <li><label for="red">Red: </label><input class="captcha" type="radio" id="red" value="red" name="captcha2" /></li>
      <li><label for="green">Green: </label><input class="captcha" type="radio" id="green" value="green"/></li>
      <li><label for="blue">Blue: </label><input class="captcha" type="radio" id="blue" value="blue" /></li>
  </ul>
</fieldset>
</form>

Examples of captchas

Single response

Multiple response choices