Advertisement
Guest User

Untitled

a guest
Nov 19th, 2018
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 2.53 KB | None | 0 0
  1. TOP HTML Elements Used
  2.  
  3. COMMENT OUT
  4. <!-- you can use the [CMD /] hot key!  -->
  5.  
  6. <!--<!DOCTYPE html>-->
  7. <html>
  8. <head>
  9.     <meta charset="utf-8" />
  10.     <meta http-equiv="X-UA-Compatible" content="IE=edge">
  11.     <title>Title Here</title>
  12.     <meta name="viewport" content="width=device-width, initial-scale=1">
  13.     <link rel="stylesheet" type="text/css" media="screen" href="main.css" />
  14.     <script src="main.js"></script>
  15. </head>
  16. <body>
  17.    
  18. </body>
  19. </html>
  20.  
  21. <ul>
  22.     <li></li>
  23.     <li></li>
  24.     <li></li>
  25.         <ul>
  26.             <li></li>
  27.             <li></li>
  28.             <li></li>
  29.         </ul>
  30. </ul>
  31.  
  32.  
  33. LINE BREAK
  34. <hr>
  35. example: ----------------------------------------------------
  36.  
  37. and
  38.  
  39. HTML5 Break
  40. <br>
  41.  
  42.  
  43. INSERT IMAGE
  44. <img src="path" alt="" width="" height="">
  45.  
  46.  
  47. ANCHOR TEXT
  48. <a href="path">TEXT HERe</a>
  49.  
  50. or
  51.  
  52. Wrap element in <a>Tage</a>
  53. example:
  54. <a href="PATH OF FILE (EX: TEST/INDEX.HTML)">
  55.     <h1>TEXT HERE</h1><!--SPACE TO LOOK NEATER AND READABLE-->
  56. </a>
  57.  
  58.  
  59.  
  60. INPUT FORMS===============
  61.  
  62.  
  63. Text input:
  64.    
  65. to send form that does not display in [plain text] in url:
  66. <form method="POST"">
  67.  
  68. </form>
  69.  
  70.  
  71. INPUT TEXT BOX:
  72. <form method="POST">
  73.         First name: <input type="text" name="firstname"><br>
  74.         Last name: <input type="text" name="lastname"><br>
  75.         Email: <input type="email" name="email"required><br>
  76.         Birthday: <input type="date" name="birthday"><br>
  77.         <input type="submit" value="Register!">
  78.         <input type="reset">
  79. </form>
  80.  
  81.  
  82.     Password:
  83. <form method="POST">
  84.     <input type="password" min="5">
  85. </form>
  86.  
  87.  
  88. Radio buttons:
  89. <form method="POST">
  90.         <input type="Radio" name="gender" value="male">Male<br>
  91.         <input type="Radio" name="gender" value="female">Female<br>
  92.         <input type="Radio" name="gender" value="other">Other<br>
  93.         <input type="submit" value="Register!">
  94.         <input type="reset">
  95. </form>
  96.  
  97.  
  98. Checkboxes:
  99. <form method="POST">
  100.         <input type="checkbox" name="cat"> cat<br>
  101.         <input type="checkbox" name="dog"> dog<br>
  102. </form>
  103.  
  104.  
  105. Dropdown:
  106. <form method="POST"<!--Select options can be added like (multiple)-->
  107.     <select name="cars">
  108.         <option value="volvo" name="volvo">Volvo</option>
  109.         <option value="Audi" name="audi">Audi</option>
  110.         <option value="Chevy" name="chevy">Chevy</option>
  111.         <option value="Mercedes" name="mercedes">Mercedes</option>
  112.      </select>
  113. </form>
  114. Also there are multipple attributes with the <select></select> tag. Google them!
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement