index.html 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  1. <style type="text/css">
  2. body {
  3. background-color:rgb(23, 110, 145);
  4. color:white;
  5. font-family:'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  6. }
  7. #title-div {
  8. width: 800px;
  9. margin: auto;
  10. text-align: center;
  11. }
  12. #form-div {
  13. background-color: hsla(276, 31%, 20%, 0.8);
  14. width: 800px;
  15. margin: 40px auto 40px auto;
  16. padding-top: 40px;
  17. border-radius: 4px;
  18. }
  19. form {
  20. width: 90%;
  21. margin: auto;
  22. }
  23. textarea {
  24. width: 100%;
  25. height: 200px;
  26. }
  27. .input-text {
  28. width: 100%;
  29. height: 32px;
  30. margin: 2px 0 10px 0 ;
  31. border-radius: 2px;
  32. font-size: 18px;
  33. }
  34. .input-radio {
  35. font-size: 18px;
  36. margin-top: 10px;
  37. }
  38. .input-label {
  39. font-size: 20px;
  40. }
  41. .div-margin {
  42. margin-bottom: 20px;
  43. }
  44. button {
  45. background-color: rgb(71, 133, 71);
  46. color: aliceblue;
  47. height: 40px;
  48. width: 90%;
  49. border-radius: 2px;
  50. font-size: 24px;
  51. outline: none;
  52. border:none;
  53. margin: 5% 20px 5% 20px;
  54. }
  55. </style>
  56. <main>
  57. <div id="title-div">
  58. <h1 id="title">freeCodeCamp Survey Form</h1>
  59. <p id="description">Thank you for taking the time to help us improve the platform</p>
  60. </div>
  61. <div id="form-div">
  62. <form id="survey-form">
  63. <div class="div-margin">
  64. <label id="name-label" class="input-label" for="name">Name</label><br>
  65. <input id="name" class="input-text" type="text" placeholder="Enter your name" required><br>
  66. </div>
  67. <div class="div-margin">
  68. <label id="email-label" class="input-label" for="email">Email</label><br>
  69. <input id="email" class="input-text" type="email" placeholder="Enter your email" required><br>
  70. </div>
  71. <div class="div-margin">
  72. <label id="number-label" class="input-label" for="number">Age(option)</label><br>
  73. <input id="number" class="input-text" type="number" placeholder="10" min="10" max="100"><br>
  74. </div>
  75. <div class="div-margin">
  76. <label class="input-label" for="dropdown">Which option best describes your current role?</label><br>
  77. <select class="input-text" id="dropdown" >
  78. <optgroup label="can no choose"></optgroup>
  79. <option value="volvo">Volvo</option>
  80. <option value="saab">Saab</option>
  81. <option value="mercedes">Mercedes</option>
  82. <option value="audi">Audi</option>
  83. </select>
  84. </div>
  85. <div class="div-margin">
  86. <label class="input-label"> the radio choose here:</label><br>
  87. <label for="one-radio"><input class="input-radio" id="one-radio" value="one" type="radio" name="radio-select" > radio-choose-one</label><br>
  88. <label for="two-radio"><input class="input-radio" id="two-radio" value="two" type="radio" name="radio-select" > radio-choose-two</label><br>
  89. <label for="three-radio"><input class="input-radio" id="three-radio" value="three" type="radio" name="radio-select" > radio-choose-three</label><br>
  90. </div>
  91. <div class="div-margin">
  92. <label class="input-label"> the radio choose here:</label><br>
  93. <label for="one-checkbox"><input class="input-radio" id="one-checkbox" value="one1" type="checkbox" name="checkbox-select"> checkbox-choose-one</label><br>
  94. <label for="two-checkbox"><input class="input-radio" id="two-checkbox" value="two1" type="checkbox" name="checkbox-select"> checkbox-choose-two</label><br>
  95. <label for="three-checkbox"><input class="input-radio" id="three-checkbox" value="three1" type="checkbox" name="checkbox-select"> checkbox-choose-three</label><br>
  96. </div>
  97. <div class="div-margin">
  98. <label class="input-label">the checkbox choose here:</label><br>
  99. <textarea class="input-label" id="commonts" placeholder="Enter your commonts..."></textarea>
  100. </div>
  101. <button id="submit" type="submit">Submit</button>
  102. </form>
  103. </div>
  104. </main>