├── LICENSE
├── README.md
├── html-cheatsheet-self-closing.afphoto
├── html-cheatsheet-self-closing.jpg
├── html-cheatsheet-syntax.afphoto
├── html-cheatsheet-syntax.jpg
├── html-cheatsheet.afphoto
├── html-cheatsheet.gif
├── html-cheatsheet.jpg
└── html-cheatsheet.pdf
/LICENSE:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) 2018 iLoveCoding
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # 🔥 HTML Cheatsheet 🗺️
2 | This is the cheatsheet for the basic syntax, terminologies, markup, and common elements of HTML.
3 |
4 | Note: This is not an exhaustive list of all the elements HTML has. For an awesome [HTML Reference, click here.](https://developer.mozilla.org/en-US/docs/Web/HTML/Element)
5 |
6 | Want to learn HTML & CSS? [here's an awesome video course](https://ilovecoding.org/courses/htmlcss2)
7 |
8 | ## I present to you - The HTML Cheatsheet 💪
9 | [](html-cheatsheet.pdf)
10 |
11 | Download [PDF](html-cheatsheet.pdf) or [Image](html-cheatsheet.gif)
12 |
13 | ## What is a syntax?
14 | All languages have a syntax. English, Urdu, HTML, JavaScript all have a syntax. In English, we learn when to write commas, full-stops, paragraphs etc. Similarly there are syntax rules for HTML.
15 |
16 | HTML is a markup language that has ONLY one thing - Elements. HTML is a collection of elements. A combination of elements are used to build a webpage.
17 |
18 |
19 |
20 | ## Rules of writing HTML Elements
21 |
22 | #### 1. All elements have have an opening tag
23 | ``
24 |
25 | #### 2. The Opening tag has the name of the element ``
26 |
27 | #### 3. All elements close.
28 |
29 | #### 4. Either elements self-close ``
30 |
31 | #### 5. or they close via a closing tag
32 | ```
33 | // Opening tag
34 | // closing tag
35 | ```
36 |
37 | #### 6. Elements optionally have attributes and attributes have value
38 | ``
39 |
40 | #### 7. Elements optionally have children between the opening and closing tag
41 | ```
42 |
43 | children
44 |
45 | ```
46 |
47 | These children can either be more elements or simply plain text
48 | ```
49 |
50 |
51 | children of second element
52 |
53 |
54 |
55 | children of third element
56 |
57 |
58 | ```
59 |
60 | ## 📋 HTML References
61 | The above was how to write HTML, now you may want to know all the different elements there are available in the HTML language.
62 |
63 | Luckily, Mozilla and a ton of open source contributors have put together an [HTML Reference](https://developer.mozilla.org/en-US/docs/Web/HTML/Element).
64 |
65 | It has a list of all HTML elements by category.
66 |
67 | ## 👍 Want to learn HTML & CSS?
68 |
69 | Try the most [comprehensive HTML & CSS video course](https://ilovecoding.org/courses/htmlcss2) on iLoveCoding.
70 |
71 | Learn how to code HTML & CSS and build simple and professional websites.
72 |
73 | ## 🗺️️️️️Want a CSS Cheatsheet as well?
74 |
75 | Check out this [CSS Cheatsheet](https://github.com/iLoveCodingOrg/css-cheatsheet)
76 |
77 | ## Other Cheatsheets:
78 |
79 | - [CSS Cheatsheet](https://github.com/iLoveCodingOrg/css-cheatsheet)
80 | - [JavaScript Cheatsheet](https://github.com/iLoveCodingOrg/javascript-cheatsheet)
81 |
--------------------------------------------------------------------------------
/html-cheatsheet-self-closing.afphoto:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iLoveCodingOrg/html-cheatsheet/e8af88449dcddb07f331b153f720d8b60236c1f4/html-cheatsheet-self-closing.afphoto
--------------------------------------------------------------------------------
/html-cheatsheet-self-closing.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iLoveCodingOrg/html-cheatsheet/e8af88449dcddb07f331b153f720d8b60236c1f4/html-cheatsheet-self-closing.jpg
--------------------------------------------------------------------------------
/html-cheatsheet-syntax.afphoto:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iLoveCodingOrg/html-cheatsheet/e8af88449dcddb07f331b153f720d8b60236c1f4/html-cheatsheet-syntax.afphoto
--------------------------------------------------------------------------------
/html-cheatsheet-syntax.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iLoveCodingOrg/html-cheatsheet/e8af88449dcddb07f331b153f720d8b60236c1f4/html-cheatsheet-syntax.jpg
--------------------------------------------------------------------------------
/html-cheatsheet.afphoto:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iLoveCodingOrg/html-cheatsheet/e8af88449dcddb07f331b153f720d8b60236c1f4/html-cheatsheet.afphoto
--------------------------------------------------------------------------------
/html-cheatsheet.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iLoveCodingOrg/html-cheatsheet/e8af88449dcddb07f331b153f720d8b60236c1f4/html-cheatsheet.gif
--------------------------------------------------------------------------------
/html-cheatsheet.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iLoveCodingOrg/html-cheatsheet/e8af88449dcddb07f331b153f720d8b60236c1f4/html-cheatsheet.jpg
--------------------------------------------------------------------------------
/html-cheatsheet.pdf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iLoveCodingOrg/html-cheatsheet/e8af88449dcddb07f331b153f720d8b60236c1f4/html-cheatsheet.pdf
--------------------------------------------------------------------------------