Project 2 Codejika - Com DT v2
Project 2 Codejika - Com DT v2
COM
Training 1
engaging Website CV built
with HTML, CSS and
emojies.
PRONOUNCED: CODE–GEE-KA
LEARN:
JIKA MEANS “DANCE” OR TURN IN ZULU, A SOUTH AFRICAN LANGUAGE. The practical skills of a
Jnr. Web Developer over
12 Projects.
PURPOSE:
Desktop – v1 Teach yourself. Teach
LEARN MORE: www.CODEJIKA.com your friends. Help others.
Your CV Website
will look like this:
<!DOCTYPE html>
<head>
START
<style>
</style>
</head>
Start by setting up <body>
the skeleton of your
code.
TIP:
You learnt this in your last </body>
project.
www.codejika.com 2019 Copyright Code for Change | Ultimate Growth 8
CHALLENGE
STEP 1 CODE :
Add this part:
<!DOCTYPE html>
<head>
<style>
</style>
</head>
www.codejika.com 2019 Copyright Code for Change | Ultimate Growth 9
CHALLENGE
STEP 2 CODE :
Now add the <body>
section.
<body>
</body>
TIP:
Don’t get confused. It’s not the <head>.
The <header> goes in the <body> section.
www.codejika.com 2019 Copyright Code for Change | Ultimate Growth 12
CHALLENGE
STEP 1 CODE :
Add a <header> .
<header>
</header>
<h1>
THANDI NDLOVU
</h1>
www.codejika.com 2019 Copyright Code for Change | Ultimate Growth 14
TIP :
Don’t forget to
close your tags!
...
This mission will include 4 challenges.
REVIEW
border: solid #ad54ce;
border-width: 10px 0px 10px 0px;
} Is applied to
in <body>
</style>
CSS styles HTML. </head>
<body>
<header>
<h1>Thandi Ndlovu</h1>
</header>
</body>
www.codejika.com 2019 Copyright Code for Change | Ultimate Growth 19
CHALLENGE CODE :
STEP 1
Add a CSS selector called
header.
Add some
styling to the
<style>
header.
header {
}
</style>
www.codejika.com 2019 Copyright Code for Change | Ultimate Growth 20
CHALLENGE
STEP 2 CODE :
Add a lightblue background
to the header element.
background: lightblue;
4th Left
2nd Right
3rd Bottom
1st Top
www.codejika.com 2019 Copyright Code for Change | Ultimate Growth 24
CHALLENGE CODE :
STEP 4
Add a top and bottom border
to header.
EXCITING!!!
Go to the next slide and compare your
code.
<body>
<header>
<h1>
Thandi Ndlovu
</h1>
</header>
</body>
CHECKPOINT
Your code should
look something like
this:
B. <style>
C. <body>
D. Curly brackets
C. The indent
50% 100%
PREVIOUS ANSWER: D.
www.codejika.com 2019 Copyright Code for Change | Ultimate Growth 33
Ready for
Training 2?
Training 2
engaging Website CV built
with HTML, CSS and
emojies.
LEARN:
PRONOUNCED: CODE–GEE-KA The practical skills of a
JIKA MEANS “DANCE” OR TURN IN ZULU, A SOUTH AFRICAN LANGUAGE.
Jnr. Web Developer over
12 Projects.
PURPOSE:
Desktop – v3 Teach yourself. Teach
LEARN MORE: www.CODEJIKA.com your friends. Help others.
*”Hello” in Zulu.
www.codejika.com 2019 Copyright Code for Change | Ultimate Growth 38
Here’s an overview of the
projects.
You’re on Project 2.
Center everything.
...
This mission will include 2 challenges.
margin: auto;
text-align: left;
text-align: right;
text-align: center;
Use:
text-align:
TIP:
Close the element with
a ; (semi-colon).
www.codejika.com 2019 Copyright Code for Change | Ultimate Growth 49
...
header {
CHECKPOINT background: #ce54c7;
border: solid #ad54ce;
border-width: 10px 0px 10px 0px;
Your code should margin: 0 auto;
text-align: center;
look like this: }
...
<body>
<header>
<br>
<h1>
THANDI NDLOVU
</h1>
</header>
</body>
www.codejika.com 2019 Copyright Code for Change | Ultimate Growth 50
MISSION
COMPLETE
...
This mission will include 4 challenges.
EXAMPLE:
</h1>
Aspiring Mechanical Engineer
</header>
EXAMPLE:
I <i>LOVE</i> ICECREAM!
EXAMPLE:
</h1>
<i>
Aspiring Mechanical Engineer
</i>
</header>
</body>
...
This mission will include 4 challenges.
WHERE:
Put this below the last <br> and before the
</body> closing tag.
<h3>
DETAILS
</h3>
WHERE:
Below the <h3>.
<P>Grade: 9</p>
</body>
C. Slanted text.
C. h3 { text-align: center; }
50% 100%
PREVIOUS ANSWER: C.
www.codejika.com 2019 Copyright Code for Change | Ultimate Growth 77
SUGGESTION:
If you have internet: We recommend:
Download and install a
better code editor. Notepad++
WHY?
It’s easier and shows any FOLLOW THE LINK:
mistakes in your code. https://notepad-plus-plus.org/download/
Training 3
engaging Website CV built
with HTML, CSS and
emojies.
LEARN:
PRONOUNCED: CODE–GEE-KA The practical skills of a
JIKA MEANS “DANCE” OR TURN IN ZULU, A SOUTH AFRICAN LANGUAGE.
Jnr. Web Developer over
12 Projects.
PURPOSE:
Desktop – v4 Teach yourself. Teach
LEARN MORE: www.CODEJIKA.com your friends. Help others.
1. Make a box.
2. Transform it into a circle with 1 line.
3. Remember 3 things about Classes.
a mysterious box.
www.codejika.com 2019 Copyright Code for Change | Ultimate Growth 85
In the middle of your website.
width: 100px;
height: 100px;
What would you do?!?
www.codejika.com 2019 Copyright Code for Change | Ultimate Growth 86
MISSION
Make a box.
...
This mission will include 3 challenges.
.box {
width: 100px;
height: 100px;
}
www.codejika.com 2019 Copyright Code for Change | Ultimate Growth 88
BRIEFING 2 of 4 1.1.2
MAKE A BOX:
Make a box
<div class="box">
</div>
Amazing! Right?
.box {
height: 250px;
width: 250px;
TIP:
}
In <style> section.
www.codejika.com 2019 Copyright Code for Change | Ultimate Growth 92
CHALLENGE
STEP 2 CODE :
1. Make a <div> in the <header>
section above <h1>.
2. Add the .box class to the
<div>.
<div class="box">
TIP:
</div>
In <header> above
<h1>.
www.codejika.com 2019 Copyright Code for Change | Ultimate Growth 93
To see your box, you have
to add a border or
background.
TIP:
background: blue;
In .box { } .
www.codejika.com 2019 Copyright Code for Change | Ultimate Growth 95
...
CHECKPOINT .box {
height: 250px;
width: 250px;
background-color: blue;
Your code should }
look like this: </style>
</head>
<body>
<header>
<div class="box">
</div>
<h1>
THANDI NDLOVU
</h1>
</header>
www.codejika.com
...
2019 Copyright Code for Change | Ultimate Growth 96
WOW
You are on
<div> Tag
<div>
What’s a It’s like a magical
DIV? stretchy container &
you can put any type
of object in it.
</div>
Ready?
www.codejika.com 2019 Copyright Code for Change | Ultimate Growth 102
MISSION
Make a circle.
...
This mission will include 4 challenges.
50%
5%
border-radius: 50%;
<div class="circle">
TIP:
display: inline-block;
In .circle { } .
www.codejika.com 2019 Copyright Code for Change | Ultimate Growth 111
GREAT!
You’re done with the circle.
We believe in you!
www.codejika.com 2019 Copyright Code for Change | Ultimate Growth 112
MISSION
...
This mission will include 1 “Remember”.
.banner {
EXAMPLE: color: pink;
}
www.codejika.com 2019 Copyright Code for Change | Ultimate Growth 115
BRIEFING 1 of 4 1.1.2
Make a box
CSS Classes have two parts;
Make a box
1.
Classes are
SUPER POWERFUL
CSS CLASS
OVERVIEW and make up
most of CSS.
Make a box
2.
Classes always
start with a dot
CSS CLASS
OVERVIEW
.
“ ”.
.banner {
color: pink;
}
Make a box
3.
Write them once
and
CSS CLASS
OVERVIEW use them
ANYWHERE.
Do you agree?
You’ve finished
Training 3.
www.codejika.com 2019 Copyright Code for Change | Ultimate Growth 123
Training 4 is SUPER
FUN!
It’s actually magical.
= Hint
Training 4
engaging Website CV built
with HTML, CSS and
emojies.
LEARN:
PRONOUNCED: CODE–GEE-KA The practical skills of a
JIKA MEANS “DANCE” OR TURN IN ZULU, A SOUTH AFRICAN LANGUAGE.
Jnr. Web Developer over
12 Projects.
PURPOSE:
Desktop – v3 Teach yourself. Teach
LEARN MORE: www.CODEJIKA.com your friends. Help others.
We gonna be learnin’…
...
This mission will include 6 challenges.
A hexadecimal color
( 6-Numbers) is specified with:
#RRGGBB
Green
Blue
www.codejika.com Red
2019 Copyright Code for Change | Ultimate Growth 133
BRIEFING 2 of 4 1.1.2
HTML Colors CONTENT
HTML Colors
= #0000FF
For example, #0000FF is displayed as
blue.
That’s because the blue component is
set to its highest value (FF) and the
others are set to 00.
= #ce54c7
TIP:
Here’s a great place to choose colors:
https://www.w3schools.com/colors/colors_picker.asp
www.codejika.com 2019 Copyright Code for Change | Ultimate Growth 135
BRIEFING 4 of 4 1.1.2
EXPERIMENT:
HTML Colors
Try it yourself
Replace some numbers with any you want.
body {
background: #ce54c7;
}
h3 {
}
TIP:
In <style> section.
www.codejika.com 2019 Copyright Code for Change | Ultimate Growth 139
CHALLENGE
2 of 5 CODE :
Add a background color to
h3.
background-color: #ce54c7;
padding: 40px;
font-size: 1.5em;
header, h3 {
}
header, h3 {
color: white;
}
...
This mission will include 1 challenge.
GRAPHIC
1. Serif
Has curly flicks.
2. Sans Serif
Very straight.
www.codejika.com 2019 Copyright Code for Change | Ultimate Growth 152
BRIEFING 3 of 5 1.1.2
FONTS
FONTS
Serif:
EXAMPLES: This is Times New Roman
Sans Serif:
This is Arial
www.codejika.com 2019 Copyright Code for Change | Ultimate Growth 153
BRIEFING 2 of 5 1.1.2
FONTS
FONTS
Do you see the differences?
Also great:
font-family: "Times New Roman",
Times, serif;
body {
font-family: helvetica, arial,
san-serif;
}
header, h3 {
color: white;
font-family: "Arial Black",
Gadget, sans-serif;
}
Understand
• “Responsive” web design,
• Pixels
• screen sizes.
...
This mission will include 0 challenges.
A responsive website
works on different screen
sizes.
What do we mean by screen size?
pixel = px
EXAMPLES:
720px
This screen is
1280px
EXAMPLES: 720 pixels by
1280 pixels.
width: 50%;
Box
50%
50% will cover half
the screen, no
EXAMPLES: Box
matter the size. 50%
width: 50%;
1 vw point size
=
1% of screen width.
font-size: 10vw;
You’ve finished
Training 4.
www.codejika.com 2019 Copyright Code for Change | Ultimate Growth 174
WHOA!
That was a lot of
information.
50% 100%
PREVIOUS ANSWER: A.
www.codejika.com 2019 Copyright Code for Change | Ultimate Growth 180
AMAZING!
We made it.
Training 5
engaging Website CV built
with HTML, CSS and
emojies.
LEARN:
PRONOUNCED: CODE–GEE-KA The practical skills of a
JIKA MEANS “DANCE” OR TURN IN ZULU, A SOUTH AFRICAN LANGUAGE.
Jnr. Web Developer over
12 Projects.
PURPOSE:
Desktop – v2 Teach yourself. Teach
LEARN MORE: www.CODEJIKA.com your friends. Help others.
1. Your dreams.
2. Your goals.
3. You’ll also learn HTML Lists.
...
This mission will include 4 challenges.
A CV is your personal
advertisement and it tells your
story.
<h3>
ABOUT ME
<h3>
www.codejika.com 2019 Copyright Code for Change | Ultimate Growth 192
PREPARE
CODE :
Write about yourself in a <p>.
WRITE:
What you are excited about.
What you love doing & your dream.
WHERE:
Below the h3.
EXAMPLE:
TIP:
You can add different <p> I love.... </p>
lines by making a new
<p> for each line. <p> My dream is.... </p>
www.codejika.com 2019 Copyright Code for Change | Ultimate Growth 194
GREAT.
Did you manage?
...
This mission will include 2 challenges.
Add an h3 2011-2015:
East-gate Primary,
“EDUCATION” Boksburg
section.
2015- Ongoing:
Itirele-Zenzele
Add the text in a Secondary, Diepsloot
...
This mission will include 6 challenges.
<ol>
<li>First item</li>
</ol>
1. First item
2. Second item
3. Third item
<ol>
<li>First item</li>
<li>Second item</li>
<li>Third item</li>
</ol>
www.codejika.com 2019 Copyright Code for Change | Ultimate Growth 207
BRIEFING 4 of 5 1.1.2
LISTS
LISTS
<ul> Unordered List
1. Starts with <ul>
2. Each item is wrapped with <li> and
</li>
3. Ends with </ul>
<ul>
<li>First item</li>
</ul>
•Item
•Item
•Item
<ul>
<li>Item</li>
<li>Item</li>
<li>Item</li>
</ul>
www.codejika.com 2019 Copyright Code for Change | Ultimate Growth 209
Simple, right?
1 of 4 CODE : <h3>SKILLS</h3>
Add an “SKILLS”
<ul>
section. <li>I can make an
amazing spaghetti.
</li>
<li>Taught Michael
Jackson to dance.
</li>
<li>Level 17: Tree-
climber
</li>
</ul>
www.codejika.com 2019 Copyright Code for Change | Ultimate Growth 212
Did you notice that the
list doesn’t look amazing?
p, ul {
}
p, ul {
padding-left: 50px;
}
www.codejika.com 2019 Copyright Code for Change | Ultimate Growth 216
CHALLENGE
4 of 4 CODE :
Increase the size of text within
these selectors by 30%.
Use em.
p, ul {
padding-left: 50px;
font-size: 1.3em;
}
www.codejika.com 2019 Copyright Code for Change | Ultimate Growth 217
GOOD JOB!
You’ve finished
Training 5.
www.codejika.com 2019 Copyright Code for Change | Ultimate Growth 224
Ready for
Training 6?
Training 6
engaging Website CV built
with HTML, CSS and
emojies.
LEARN:
PRONOUNCED: CODE–GEE-KA The practical skills of a
JIKA MEANS “DANCE” OR TURN IN ZULU, A SOUTH AFRICAN LANGUAGE.
Jnr. Web Developer over
12 Projects.
PURPOSE:
Desktop – v2 Teach yourself. Teach
LEARN MORE: www.CODEJIKA.com your friends. Help others.
Emojies
EXAMPLE:
= #x1F60E
www.codejika.com 2019 Copyright Code for Change | Ultimate Growth 235
BRIEFING 4 of 4 1.1.2
EMOJIIES
EMOJIES
EXAMPLE:
= 😎
www.codejika.com 2019 Copyright Code for Change | Ultimate Growth 236
MISSION
WHERE:
Inside the <div> in <header>.
<header>
<div class="circle">
<div>
</div>
</div>
</header>
www.codejika.com 2019 Copyright Code for Change | Ultimate Growth 239
CHALLENGE CODE :
2 of 4
Place an emoji into the new <div>.
Use this one: 😎
<header>
<div class="circle">
<div>
😎
</div>
</div>
</header>
www.codejika.com 2019 Copyright Code for Change | Ultimate Growth 240
CHECK
Do you see the emoji you
added?
EXAMPLE:
font-size: 8em;
TIP:
1em = 16px
www.codejika.com 2019 Copyright Code for Change | Ultimate Growth 243
CHALLENGE CODE :
3 of 4
Create a new CSS Class: .emoji
and increase the font size to 8em .
.emoji {
font-size: 8em;
}
<div class="circle">
<div class="emoji">
😎
</div>
</div>
...
This mission will include 2 challenges.
<h3>
☉ DETAILS
</h3>
⚽ SKILLS
✉ CONTACT
...
This mission will include 2 challenges.
p, ul {
list-style: none;
padding-left: 50px;
font-size: 1.3em;
}
www.codejika.com 2019 Copyright Code for Change | Ultimate Growth 257
CHECK
in front of
</li>
<li>⚪ Dance like ...
each item on </li>
EXAMPLE:
© = ©
www.codejika.com 2019 Copyright Code for Change | Ultimate Growth 262
BRIEFING 4 of 4 1.1.2
COPYRIGHT
COPYRIGHT
<br>
© Copyright 2021 Thandi Ndlovu
Inc.
<br>
TIP: © Copyright 2021 Thandi Ndlovu
Add the year and your Inc.
name after the copyright
sign.
www.codejika.com 2019 Copyright Code for Change | Ultimate Growth 264
Here’s a quick way to
center your copyright line:
<center>
<br>
© Copyright 2021...
</center>
CHECKPOINT
</h3>
<p> Stuff.... </p>
<h3>
✎ EDUCATION
</h3>
...
www.codejika.com 2019 Copyright Code for Change | Ultimate Growth 268
You just finished Project 2.
TIME TO CELEBRATE.