Advertisement
GreatRaymondo

HTML Cheatsheet

Feb 18th, 2022
375
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.83 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <title>HTML Cheatsheet</title>
  5. </head>
  6. <body>
  7. <a href="myblog.html">Go link to other HTML</a>
  8.  
  9.  
  10. <!-- Headings -->
  11. <h1>Heading 1</h1>
  12. <h2>Heading 2</h2>
  13. <h3>Heading 3</h3>
  14.  
  15.  
  16. <!-- Paragraghs -->
  17. <p>This is a short paragraph</p>
  18.  
  19. <p>
  20. This is a longer paragraph<br>
  21. We're using page breaks<br>
  22. to have it display<br>
  23. four lines.<br>
  24. </p>
  25.  
  26. <p>This is <b>Bold text</b>.</p>
  27.  
  28. <p>This is <strong>Important text</strong>.</p>
  29.  
  30. <p>This is <i>Italic text</i>.</p>
  31.  
  32. <p>This is <em>Emphasized text</em>.</p>
  33.  
  34. <p>This is <mark>Marked text</mark>.</p>
  35.  
  36. <p>This is <small>Small text</small>.</p>
  37.  
  38. <p>This is <del>Deleted text</del>.</p>
  39.  
  40. <p>This is <ins>Inserted text</ins>.</p>
  41.  
  42. <p>This is <sub>Subscript text</sub>.</p>
  43.  
  44. <p>This is <sup>Superscript text</sup>.</p>
  45.  
  46. <p style="color: red;">This is red text.</p>
  47.  
  48. <p style="font-family:courier,">This is text using courier font.</p>
  49.  
  50. <p style="font-size:300%">This is very large text.</p>
  51.  
  52. <!-- Lists -->
  53.  
  54. <ul>
  55. <li>Stout</li>
  56. <li>Mild</li>
  57. <li>Amber</li>
  58. <li>Pale</li>
  59. </ul>
  60.  
  61. <ol>
  62. <li>McGarrett</li>
  63. <li>Williams</li>
  64. <li>Kelly</li>
  65. <li>Rey</li>
  66. </ol>
  67.  
  68. <!-- Tags -->
  69.  
  70. <dl>
  71.  
  72. <dt>Tag</dt>
  73. <dd>A mark that is used to distinguish HTML code from regulat text</dd>
  74. <dt>Element</dt>
  75. <dd>A pair of tags and all the content included between them</dd>
  76. <dt>Head</dt>
  77. <dd>The main element that contains information that will not be displayed in the browser</dd>
  78. <dd>The main element that contains information that will be displayed by the browser</dd>
  79. </dl>
  80.  
  81. <!-- Links -->
  82.  
  83. <a href="https://www.theblogstarter.com/html-for-beginners#ftoc-heading-19">HTML for beginners</a>
  84. <br>
  85.  
  86. <!-- Images -->
  87.  
  88. <img src="flintcas1.jpg" style="width:400px;height:400px;">
  89.  
  90. <!-- Tables -->
  91. <table>
  92. <tr>
  93. <th>First Name</th>
  94. <th>Last Name</th>
  95. <th>Address</th>
  96. </tr>
  97. <tr>
  98. <td>Del</td>
  99. <td>Trotter</td>
  100. <td>Nelson Mandella House</td>
  101. </tr>
  102. <tr>
  103. <td>Albert</td>
  104. <td>Steptoe</td>
  105. <td>Oil Drum Lane</td>
  106. </tr>
  107. <tr>
  108. <td>Basil</td>
  109. <td>Fawlty</td>
  110. <td>Fawlty Towers</td>
  111. </tr>
  112. </table>
  113.  
  114. <!-- Quotes -->
  115.  
  116. <p>This is a example of a regular quote- <q>To be or not to be</q></p>
  117.  
  118. <p>This is a example of a block quote - <blockquote>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.</blockquote></p>
  119.  
  120. <!-- Forms -->
  121.  
  122. <form action="process.php" method="POST">
  123. <div>
  124. <label>First Name</label>
  125. <input type="text" name="firstName" placeholder="Enter first name">
  126. </div>
  127. <br>
  128. <div>
  129. <label>Last Name</label>
  130. <input type-"text" name="LastName" placeholder="Enter last name">
  131. </div>
  132. <br>
  133. <div>
  134. <label>Email</label>
  135. <textarea name="message"></textarea>
  136. </div>
  137. <br>
  138. <div>
  139. <label>Gender</label>
  140. <select name="Gender">
  141. <option value="male">Male</option>
  142. <option value="female">Female</option>
  143. <option value="other">Other</option>
  144. </select>
  145. </div>
  146. <br>
  147. <div>
  148. <label>Age</label>
  149. <input type="date" name"birthday">
  150. </div>
  151. <br>
  152. <input type="submit" name="submit" value="Submit">
  153. </form>
  154.  
  155. <!-- Button -->
  156.  
  157. <button>Click Me</button>
  158. <br>
  159.  
  160. <!-- Comments -->
  161.  
  162. <!- Do not display this broken image
  163.  
  164. <img src="ahappy.jpg">
  165.  
  166. ->
  167.  
  168.  
  169.  
  170. <!-- Footer -->
  171.  
  172. <div class="footer">
  173. Johnmc1 Replit
  174. </footer>
  175. </div>
  176. </body>
  177. </html>
  178.  
  179.  
  180.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement