Below you will find a table with notes to help you review each Free Code Camp challenge. Keywords are in bold text. Additional comments from me are in italics. :)
The table is organized into 3 columns:
Lesson | Summary | Example Code* |
---|---|---|
The name of the FCC challenge, with link. | A summary of what the challenge teaches in 3 bullet points or less. | Some code that demonstrates the concepts in the challenge. |
*Please note: the example code is JUST AN EXAMPLE, it is NOT THE ANSWER. Let's not be that much of cheaters :D
Lesson | Summary | Example Code |
---|---|---|
Say Hello to HTML Elements |
|
<h1> SOME TEXT HERE </h1> |
Headline with the h2 Element |
|
<h1> Main Heading </h1> <h2>Second Heading</h2> <h3>Third Heading</h3> |
Inform with the Paragraph Element |
|
<p> SOME TEXT HERE </p> |
Uncomment HTML |
|
<!-- <h1> This heading will not show up. </h1> --> <h1> This heading will show up. </h1> |
Comment Out HTML |
|
<!-- <h1> deactivated heading </h1> --> <p>active paragraph</p> |
Fill In the Blank with Placeholder Text |
|
<p> Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</p> |
Delete HTML Elements |
|
There aren't any elements here. I guess I deleted them. Oops! |
Change the Color of Text |
|
<p style="color: purple"> this text will be purple </p> |
Use CSS Selectors to Style Elements |
|
<style> h2 { color: purple; } </style> <h2> This will be purple. </h2> <p> This will not be purple.</p> |
Use a CSS Class to Style an Element |
|
<style> .yellow { color: yellow; } </style> <h2 class="yellow"> This will be yellow. </h2> |
Style Multiple Elements with a CSS Class |
|
<style> .yellow { color: yellow; } </style> <h2 class="yellow"> This is yellow. </h2> <p class="yellow"> This is also yellow. </p> |
Change the Font Size of an Element |
|
<style> h2 { font-size: 2em; } p { font-size: 20px; } </style> <h2> This is bigger. </h2> <p> This is big. </p> |
Set the Font Family of an Element |
|
<style> p { font-size: 20px; font-family: sans-serif; } </style> <p> This is big sans-serif text. </p> |
Import a Google Font |
|
<link href="https://fonts.googleapis.com/css?family=Quicksand" rel="stylesheet"> <style> h2 { font-family: Quicksand; } </style> <h2> Heading in the Quicksand font </h2> |
Specify How Fonts Should Degrade |
|
<style> p { font-family: Arial, sans-serif; } </style> <p> If the computer doesn't have Arial, it will use whatever sans-serif font it has. </p> |
Add Images to Your Website |
|
<img src="https://pbs.twimg.com/media/C2JNQhqXcAA_j71.jpg" alt=".jpg photo of Crater Lake under the stars"> <img src="https://unsplash.it/600/400?random" alt="random photo via the unsplash.it API"> |
Size Your Images |
|
<style> img { width: 300px; } h2 { width: 50%; } </style> |
Add Borders Around Your Elements |
|
<style> .purple-border { 1px solid purple; } .blue-border { border-width: 1px; border-style: solid; border-color: blue; } .orange-text { color: orange; } </style> <p class="orange-text blue-border"> orange text with blue border </p> |
Add Rounded Corners with a Border Radius |
|
<style> .rounded { border-radius: 2px; } </style> <img class="rounded" src="..." alt="..."> |
Make Circular Images with a Border Radius |
|
<style> .circle-image { width: 100px; height: 100px; border-radius: 100px; } </style> <img class="circle-image" src="..." alt="..."> |
Link to External Pages With Anchor Elements |
|
<a href="https://unsplash.com"> beautiful public domain photos </a> |
Nest an Anchor Element Within a Paragraph |
|
<p> Link inside paragraph: <a href="https://example.com"> text inside link </a> </p> |
Make Dead Links Using the Hash Symbol |
|
<a href="#"> dead link </a> |
Turn an Image into a Link |
|
<a href="https://unsplash.com"> <img src="http://bit.ly/2jlBgBE" alt="Unsplash logo"> </a> |
Create a Bulleted Unordered List |
|
<ul> <li>You can use a ul element to create an "unordered list", where the items in the list are not numbered.</li> <li>Each item in the list will be inside a li, or "list item", element.</li> <li>ul elements are used for bullet point lists, like this one :), and also for navigation lists on web pages.</li> </ul> |
Create an Ordered List |
|
<ol> <li> Thing I need to do first </li> <li> Thing I need to do second </li> </ol> |
Create a Text Field |
|
<input type="text"> <input type="number"> <input type="date"> |
Add Placeholder Text to a Text Field |
|
<input type="text" placeholder="@my-username"> |