Advertisement
jargon

Checkboxes

Sep 23rd, 2024
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 0.71 KB | Help | 0 0
  1. <fieldset>
  2.   <legend>Language preferences:</legend>
  3.   <div class="language-options">
  4.     <label>
  5.       <input type="checkbox" name="english" checked />
  6.       English
  7.     </label>
  8.     <label>
  9.       <input type="checkbox" name="french" checked />
  10.       French
  11.     </label>
  12.     <label>
  13.       <input type="checkbox" name="mandarin" />
  14.       Mandarin
  15.     </label>
  16.     <label>
  17.       <input type="checkbox" name="thai" />
  18.       Thai
  19.     </label>
  20.     <label aria-disabled="true">
  21.       <input type="checkbox" name="dothraki" disabled />
  22.       Dothraki
  23.     </label>
  24.   </div>
  25. </fieldset>
  26.  
  27. <style>
  28.   .language-options {
  29.     display: flex;
  30.     gap: 10px; /* Adjust spacing between options */
  31.   }
  32. </style>
  33.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement