GonMAX

HTML CheatSheet

Nov 25th, 2019
608
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 13.10 KB | None | 0 0
  1. <!-- * *******************************************************************************************
  2. * HTML5 Cheat sheet by Hackr.io
  3. * Source: https://websitesetup.org/wp-content/uploads/2014/02/HTML-CHEAT-SHEET-768x8555.png
  4. * ******************************************************************************************* * -->
  5.  
  6.  
  7. <!-- Document Summary -->
  8.  
  9. <!DOCTYPE html>                                   <!-- Tells the browser that HTML5 version of HTML to be recognized by the browser -->
  10. <html lang="en"></html>                           <!-- The HTML lang attribute is used to identify the language of text content on the web. This information helps search engines return language specific results, -->
  11. <head></head>                                     <!-- Contains Information specific to the page like title, styles and scripts -->
  12. <title></title>                                   <!-- Title for the page that shows up in the browser title bar -->
  13. <body></body>                                     <!-- Content that the user will see -->
  14.  
  15.  
  16. <!-- Document Information -->
  17.  
  18.  
  19. <base/>                                           <!-- Usefull for specifying relative links in a document -->
  20. <style></style>                                   <!-- Contains styles for the html document -->
  21. <meta/>                                           <!-- Contains additional information about the page, author, page description and other hidden page info -->
  22. <script></script>                                 <!-- Contains all scripts internal or external -->
  23. <link/>                                           <!-- Used to create relationships with external pages and stylesheets -->
  24.  
  25.  
  26. <!-- Document Structure -->
  27.  
  28.  
  29. <h1></h1> ... <h6></h6>                           <!-- All six levels of heading with 1 being the most promiment and 6 being the least prominent -->
  30. <p></p>                                           <!-- Used to organize paragraph text -->
  31. <div></div>                                       <!-- A generic container used to denote a page section -->
  32. <span></span>                                     <!-- Inline section or block container used for creating inline style elements -->
  33. <br/>                                             <!-- Creates a line-break -->
  34. <hr>                                              <!-- Creates a sectional break into HTML -->
  35.  
  36.  
  37. <!-- Text Formatting -->
  38.  
  39.  
  40. <strong></strong> and <b></b>                     <!-- Makes text contained in the tag as bold -->
  41. <em></em> and <i></i>                             <!-- Alternative way to make the text contained in the tag as italic -->
  42. <strike></strike>                                 <!-- Creates a strike through the text element -->
  43. <pre></pre>                                       <!-- Preformatted monospace text block with some spacing intact -->
  44. <blockquote></blockquote>                         <!-- Contains long paragraphs of quotations often cited -->
  45. <abbr></abbr>                                     <!-- Contains abbreviations while also making the full form avaialable -->
  46. <address></address>                               <!-- Used to display contact information -->
  47. <code></code>                                     <!-- Used to display inline code snippets -->
  48.  
  49.  
  50. <!-- Links Formatting -->
  51.  
  52.  
  53. <a href="url"></a>                                <!-- Used to link to external or internal pages of a wbesite -->
  54. <a href="mailto:[email protected]"></a>           <!-- Used to link to an email address -->
  55. <a href="name"></a>                               <!-- Used to link to a document element -->
  56. <a href="#name"></a>                              <!-- Used to link to specific div element -->
  57. <a href="tel://####-####-##"></a>                 <!-- Used to display phone numbers and make them clickable -->
  58.  
  59.  
  60. <!-- Image Formatting -->
  61.  
  62.  
  63. <img src="url" alt="text">                        <!-- Used to display images in a webpage where src="url" contains the link to the image source and alt="" contains an alternative text to display when the image is not displayed -->
  64.  
  65.  
  66. <!-- List Formatting -->
  67.  
  68.  
  69. <ol></ol>                                         <!-- Used to create ordered lists with numbers in the items -->
  70. <ul></ul>                                         <!-- Used to display unordered lists with numbers in the items -->
  71. <li></li>                                         <!-- Contains list items inside ordered and unordered lists -->
  72. <dl></dl>                                         <!-- Contains list item definitions -->
  73. <dt></dt>                                         <!-- Definition of single term inline with body content -->
  74. <dd></dd>                                         <!-- The descrpition of the defined term -->
  75.  
  76.  
  77. <!-- Forms Formatting and Attributes -->
  78.  
  79.  
  80. <form action="url"></form>                        <!-- Form element creates a form and action="" specifies where the data is to be sent to when the visitor submits the form -->
  81.  
  82. <!-- Supported attributes -->
  83. method="somefunction()"                           <!-- Contains the type of request (GET, POST... etc) which dictates how to send the data of the form -->
  84. enctype=""                                        <!-- Dictates how the data is to be encoded when the data is sent to the web server. -->
  85. autocomplete=""                                   <!-- Specifies if the autocomplete functionality is enabled or not -->
  86. novalidate                                        <!-- Dictates if the form will be validated or not -->
  87. accept-charset=""                                 <!-- Identifies the character encoding upon form submission -->
  88. target=""                                         <!-- Tell where to display the information upon form submission. Possible values: '_blank', '_self', '_parent', '_top' -->
  89.                            
  90. <fieldset disabled="disabled"></fieldset>         <!-- Identifies the group of all fields in the form -->
  91. <label for=""></label>                            <!-- A simple field label telling the user what to type in the field -->
  92. <legend></legend>                                 <!-- The form legend acts as a caption for the fieldset element -->
  93.  
  94. <input type="text/email/number/color/date">       <!-- Input is the input field where the user can input various types of data -->
  95.  
  96. <!-- Supported attributes -->
  97. name=""                                           <!-- Describes the name of the form -->
  98. width=""                                          <!-- Specifies the width of an input field -->
  99. value=""                                          <!-- Describes the value of the input information field -->
  100. size=""                                           <!-- Specifies the input element width in characters -->
  101. maxlength=""                                      <!-- Specifies the maximum input character numbers -->
  102. required=""                                       <!-- Specifies if the input field is required to fill in before submitting the form -->
  103. step=""                                           <!-- Identifies the legal number intervals of the input field -->
  104.  
  105. <textarea name="" id="" cols="30" rows="10">      <!-- Specifies a large input text field for longer messages -->
  106. </textarea>
  107.  
  108. <select name=""></select>                         <!-- Describes a dropdown box for users to select from variety of choices -->
  109.  
  110. <!-- Supported attributes -->
  111. name=""                                           <!-- The name for a dropdown combination box -->
  112. size=""                                           <!-- Specifies the number of available options -->
  113. multiple                                          <!-- Allows for multiple option selections -->
  114. required                                          <!-- Requires that a value is selected before submitting the form -->
  115. autofocus                                         <!-- Specifies that the dropdown automatically comes to focus once the page loads -->
  116. <optgroup></optgroup>                             <!-- Specifies the entire grouping of available options -->
  117. <option value=""></option>                        <!-- Defines one of the avaialble option from the dropdown list -->
  118. <button></button>                                 <!-- A clickable button to submit the form -->
  119.  
  120.  
  121. <!-- Tables Formatting -->
  122.  
  123.  
  124. <table></table>                                   <!-- Defines and contains all table related content -->
  125. <caption></caption>                               <!-- A description of what table is and what it contains -->
  126. <thead></thead>                                   <!-- The table headers contain the type of information defined in each column underneath -->
  127. <tbody></tbody>                                   <!-- Contains the tables data or information -->
  128. <tfoot></tfoot>                                   <!-- Defines table footer -->
  129. <tr></tr>                                         <!-- Contains the information to be included in a table row -->
  130. <th></th>                                         <!-- Contains the information to be included in a single table header -->
  131. <td></td>                                         <!-- Contains actual information in a table cell -->
  132. <colgroup></colgroup>                             <!-- Groups a single or multiple columns for formatting purposes -->
  133. <col>                                             <!-- Defines a single column of information inside a table -->
  134.  
  135.  
  136. <!-- Objects and iFrames -->
  137.  
  138.  
  139. <object data=""></object>                         <!-- Describes and embed file type including audio, video, PDF's, images -->
  140.  
  141. <!-- Supported attributes -->
  142. type=""                                           <!-- Describes the type of media embedded -->
  143. height=""                                         <!-- Describes the height of the object in pixels -->
  144. width=""                                          <!-- Describes the width of the object in pixels -->
  145. usemap=""                                         <!-- This is the name of the client-side image map in the object -->
  146.  
  147. <iframe src="" frameborder="0"></iframe>          <!-- Contains an inline frame that allows to embed external information -->                    
  148. <embed src="" type="">                            <!-- Acts as a container for external application or plug-in -->
  149. src=""                                            <!-- The source of the external file you're embedding -->
  150. width=""                                          <!-- Describes the width of the iframe in pixels -->
  151.  
  152.  
  153. <!-- HTML5 New Tags -->
  154.  
  155.  
  156. <header></header>                                 <!-- Defines the header block for a document or a section -->
  157. <footer></footer>                                 <!-- Defines the footer block for a document or a section -->
  158. <main></main>                                     <!-- Describes the main content of a document -->
  159. <article></article>                               <!-- Identifies an article inside a document -->
  160. <aside></aside>                                   <!-- Specifies content contained in a document sidebar -->
  161. <section></section>                               <!-- Defines a section of a document -->
  162. <details></details>                               <!-- Describes additonal information that user can view or hide -->
  163. <dialog></dialog>                                 <!-- A dialog box or a window -->
  164. <figure></figure>                                 <!-- An independent content block featuring images, diagrams or illustrations -->
  165. <figcaption></figcaption>                         <!-- Caption that describe a figure -->
  166. <mark></mark>                                     <!-- Displays a portion of highlighted text with in a page content -->
  167. <nav></nav>                                       <!-- Navigation links for the user in a document -->
  168. <menuitem></menuitem>                             <!-- The specific menu item that a usrr can raise from a pop up menu -->
  169. <meter></meter>                                   <!-- Describes the scalar measurement with in a known array -->
  170. <progress></progress>                             <!-- Displays the progress of a task usually a progress bar -->
  171. <rp></rp>                                         <!-- Describes text within the browsers that do not support ruby notations -->
  172. <rt></rt>                                         <!-- Displays east asian typography character details -->
  173. <ruby></ruby>                                     <!-- Describes annotations for east asian typography -->
  174. <summary></summary>                               <!-- Contains a visible heading for details element -->
  175. <bdi></bdi>                                       <!-- Helps you format parts of text in a different direction than other text -->
  176. <time></time>                                     <!-- Identifies the time and date -->
  177. <wbr>                                             <!-- A line break within the content -->
  178.  
  179.  
  180. <!-- Collective Character Obejcts -->
  181.  
  182.  
  183. &#34; &quot; Quotation Marks - "
  184. &#38; &amp; Ampersand - &
  185. &#60; &lt; Less than sign - <
  186. &#62; &gt; Greater than sign - >
  187. &#160; &nbsp; Non-breaking space
  188. &#169; &copy; Copyright Symbol - ©
  189. &#64; &Uuml; @ symbol - @
  190. &#149; &ouml; Small bullet - .
  191. &#153; &ucirc; Trademark Symbol - ™
Advertisement
Add Comment
Please, Sign In to add comment