-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
103 lines (95 loc) · 6.54 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
<!DOCTYPE html>
<html class="h-full" lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="color-scheme" content="dark">
<meta name="description" content="Your trusty Study Guide in full-stack!">
<meta name="keywords" content="HTML, CSS, JavaScript">
<meta name="author" content="Rod">
<script defer src="./assets/script.js"></script>
<link rel="icon" href="./assets/bowtie-cat.png" type="image/x-icon">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=VT323&family=Work+Sans:wght@100&display=swap" rel="stylesheet">
<Title>Full-Stack Study Guide</Title>
<link rel="stylesheet" href="./assets/style.css">
</head>
<body class="h-full">
<header class="main_header">
<h1>STUDY</h1>
<a class="profilePic" href="https://github.com/Rod-Freedom" target="_blank">
<div class="filter"></div>
<img class="cat" src="./assets/images/bowtie-cat.png" alt="round profile pic vector cat wearing a bowtie">
</a>
</div>
<h1>GUIDE</h1>
</header>
<main>
<section class="card" id="html-section">
<h2 class="topic">HTML</h2>
<ul class="bullet-points">
<li>The <a href="https://developer.mozilla.org/en-US/docs/Web/HTML/Element/head" target="_blank" class="tag"><head></a> element contains information about the webpage.</li>
<li>The <a href="https://developer.mozilla.org/en-US/docs/Web/HTML/Element/body" target="_blank" class="tag"><body></a> element represents the visible content shown to the user.</li>
<li>Use h1, h2... h6 for headings.
<ul>
<li>For accessibility, you should only use the <a href="https://developer.mozilla.org/en-US/docs/Web/HTML/Element/Heading_Elements" target="_blank" class="tag"><h1></a> once, to make clear which one is the heading.</li>
</ul>
</li>
<li>The <a href="https://developer.mozilla.org/en-US/docs/Web/HTML/Element/ul" target="_blank" class="tag"><ul></a> is used for an unordered list (bullet-points).</li>
<li>The <a href="https://developer.mozilla.org/en-US/docs/Web/HTML/Element/ol" target="_blank" class="tag"><ol></a> is used for an ordered list (with numbers).</li>
<li>The <a href="https://developer.mozilla.org/en-US/docs/Web/HTML/Element/li" target="_blank" class="tag"><li></a> is used to list items.</li>
<li>The <a href="https://developer.mozilla.org/en-US/docs/Web/HTML/Element/img" target="_blank" class="tag"><img></a> is used for images.
<ul>
<li>For accessibility, you should add a description into the <a class="tag">alt</a> attribute,<br>and a link to your image file into the <a class="tag">src</a> attribute.</li>
</ul>
</li>
</ul>
</section>
<section class="card" id="css-section">
<h2 class="topic">CSS</h2>
<ul class="bullet-points">
<li>A margin indicates how much space we want around the outside of an element.</li>
<li>A padding is a kind of margin around the content but being part of its own background inside the border.</li>
<li>Before the <a class="tag">:</a> you add the property, and after it, the value.</li>
<ul>
<li>Remember to close with a <a class="tag">;</a> after the value.
</ul>
<li>If you want to include more than one selector, just use comma's.</li>
<li>The properties names are pretty obvious; like for font size, just type <a class="tag">font-size</a>.</li>
</ul>
</section>
<section class="card" id="git-section">
<h2 class="topic">Git</h2>
<ul class="bullet-points">
<li>Use <a class="tag">git</a> before each Git statement in the terminal.</li>
<li>Use <a class="tag">checkout</a> to move to a different branch.</li>
<li>Use <a class="tag">-b</a> to create a a new branch next to <a class="tag">git checkout</a>.</li>
<li>Use <a class="tag">pull</a> to update your local branch.</li>
<li>Use <a class="tag">origin</a> to indicate the source of the pull or push.</li>
<li>When using <a class="tag">main</a>, you're refering to the main branch.</li>
<li>Use <a class="tag">push</a> for making changes to a branch.</li>
<li>After commiting, and deleting a branch, don't forget going back to main.</li>
<li>Remember to always check the branch you're at with <a class="tag">git status</a> statement.</li>
</ul>
</section>
<section class="card" id="javascript-section">
<h2 class="topic">JavaScript</h2>
<ul class="bullet-points">
<li>A JS statement is "falsy" if 0, -0, On, "", null, undefined, NaN or false.</li>
<li>To add an "else if", you need to close the first "if" statement and follow it with the "else if".</li>
<li>JavaScript follows the statements in order.</li>
<li>For extra conditions, use "else if", but if you just need a value for a falsy statement, use "else".</li>
<li>To hold text in a JS constant or variable, you use "" or '', and it's called a string.</li>
<li>When making a loop, use "for" and then list the conditions of the "var" separated by a ";".</li>
<li>A variable is a named container that allows us to store data in our code.</li>
<li>Control flow is the order in which a computer executes code in a script.</li>
<li>Order of factors in JS matter! Always define a "var" before using it in other "var" or "function".</li>
</ul>
</section>
</main>
<footer class="main_footer">
<h3>LET'S CODE!</h3>
</footer>
</body>
</html>