Advertisement
sscovil

Example of accessible HTML form markup - text in labels

Mar 7th, 2013
159
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 2.02 KB | None | 0 0
  1. <form action="http://blackwidows.co.uk/clients/wp/wp-comments-post.php" method="post" id="commentform">
  2.     <p class="comment-notes">
  3.         <label for="author">Required fields are marked <span class="required">*</span>
  4.             <br>Your details will be stored in a non-tracking cookie but your email address
  5.             will <em>never</em> be published or shared.</label>
  6.     </p>
  7.     <p class="comment-form-author">
  8.         <label class="text" for="author">Name<span class="required">*</span>
  9.         </label>
  10.         <input id="author" name="author" type="text" value="" size="30">
  11.     </p>
  12.     <p class="comment-form-email">
  13.         <label class="text" for="email">Email<span class="required">*</span>
  14.         </label>
  15.         <input id="email" name="email" type="text" value="" size="30">
  16.     </p>
  17.     <p class="comment-form-url">
  18.         <label class="text" for="url">Website</label>
  19.         <input id="url" name="url" type="text" value="" size="30">
  20.     </p>
  21.     <p class="comment-form-comment">
  22.         <label for="comment">Comment</label>
  23.         <textarea id="comment" name="comment" cols="45" rows="8"></textarea>
  24.     </p>
  25.     <p class="form-allowed-tags">
  26.         <label for="comment">You may use these <abbr title="eXtensible HyperText Markup Language">XHTML</abbr> tags
  27.             and attributes: <code>&lt;a href="" title=""&gt; &lt;abbr title=""&gt; &lt;acronym title=""&gt; &lt;b&gt; &lt;blockquote cite=""&gt; &lt;cite&gt; &lt;code&gt; &lt;del datetime=""&gt; &lt;em&gt; &lt;i&gt; &lt;q cite=""&gt; &lt;strike&gt; &lt;strong&gt; </code>
  28.         </label>
  29.     </p>
  30.     <p class="form-submit">
  31.         <input name="submit" type="submit" id="submit" value="Submit Reply">
  32.         <input type="hidden" name="comment_post_ID" value="149" id="comment_post_ID">
  33.         <input type="hidden" name="comment_parent" id="comment_parent" value="0">
  34.     </p>
  35.     <p style="display: none;">
  36.         <input type="hidden" id="akismet_comment_nonce" name="akismet_comment_nonce"
  37.        value="7914e8ff0f">
  38.     </p>
  39. </form>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement