Professional Documents
Culture Documents
ID - Part 1 - Teens Advance Web Dev
ID - Part 1 - Teens Advance Web Dev
Dilarang
menyebarluaskan/memperjualbelikan
materi tanpa seizin Timedoor Coding
Academy
Table of Contents
Advance 1
Meeting 1
Intro to Website and HTML................................................................ 1
Meeting 2
Intro to CSS and List............................................................................ 13
Meeting 3
Add Some Decoration........................................................................ 25
Meeting 4
How to Add Links.................................................................................. 33
Meeting 5
Grouping Content............................................................................... 42
Meeting 6
Modelling The Contents..................................................................... 51
Meeting 7
Styling Text.......................................................................................... 62
Meeting 8
Review and Middle Test..................................................................... 75
Meeting 9
Remake What You have Learned..................................................... 89
Meeting 10
Styling With Internal CSS.................................................................. 102
Meeting 11
How About Table in HTML?................................................................ 114
Meeting 12
More Creative Website....................................................................... 125
Meeting 13
Visual Customization......................................................................... 137
Meeting 14
Many More Styling Font..................................................................... 151
Meeting 15
Advance 1 Exam Part 1........................................................................ 163
Meeting 16
Advance 1 Exam Part 2....................................................................... 164
Timedoor Coding Academy
i
Table of Contents
Advance 2
Meeting 1
External CSS......................................................................................... 168
Meeting 2
Body Structure..................................................................................... 180
Meeting 3
Nav Positioning................................................................................... 194
Meeting 4
Anchor Link and Main Content......................................................... 210
Meeting 5
Click to Explore!................................................................................... 222
Meeting 6
Font Awesome and Gradient............................................................ 236
Meeting 7
Hover Dropdown.................................................................................. 252
Meeting 8
Review and Middle Test..................................................................... 266
PERTEMUAN 1
INTRO TO WEBSITE
AND HTML
1. Pengenalan Website
2. Pengenalan HTML
3. Tag, Heading, Paragraf, Break
4. Bold, Italic, Underline
1 Intro to Website
and HTML
2
Pertemuan 1 - Intro to Website and HTML
Intro to Website
web browser
Source: https://www.youtube.com/watch?v=BZqsKvpIjII
3
Pertemuan 1 - Intro to Website and HTML
Intro to HTML
Nah pada pertemuan ini kita akan mulai dengan belajar HTML.
Intro to HTML
1. Tag in HTML
4
Pertemuan 1 - Intro to Website and HTML
Intro to HTML
2. Struktur HTML
1. Tag Head
<head> adalah kepala dari halaman website yang berisi
informasi title, meta, css, font, dan yang lainnya. Informasi pada
tag <head> biasanya tidak ditampilkan pada halaman website.
Contoh:
5
Pertemuan 1 - Intro to Website and HTML
Intro to HTML
2. Tag Body
<body> adalah bagian isi dari halaman website yang biasanya
dilihat saat membuka website.
Contoh:
Kali ini kita akan mulai belajar tag mulai dari Heading,
Paragraph, Break, Bold, Italic, dan Underline.
1. Heading <h1>
Syntax!
<h1> Heading 1 </h1>
<h2> Heading 2 </h2>
<h3> Heading 3 </h3>
<h4> Heading 4 </h4>
<h5> Heading 5 </h5>
<h6> Heading 6 </h6>
6
Pertemuan 1 - Intro to Website and HTML
Tags in HTML
Contoh:
Codes
<h1> Apa itu Cyberbullying </h1>
Output
2. Paragraph <p>
Codes
<p> Cyberbullying biasanya terjadi di sosial
media dan games </p>
Output
7
Pertemuan 1 - Intro to Website and HTML
Tags in HTML
3. Break <br>
Tag Break digunakan untuk membuat baris
baru. Tag break termasuk dalam empty tag Syntax!
karena tidak memerlukan tag penutup.
<br>
Contoh:
Codes
<p> Cyberbullying adalah tindakan asusila <br>
yang menggunakan media digital <br> untuk
mengintimidasi, mengganggu, atau menyakiti orang
lain.</p>
Output
4. Bold <b>
Tag Bold digunakan untuk membuat teks cetak tebal.
Syntax!
<b> Teks yang dicetak tebal </b>
8
Pertemuan 1 - Intro to Website and HTML
Tags in HTML
5. Italic <i>
Syntax!
<i> Teks yang dicetak miring </i>
6. Underline <u>
Syntax!
<u> Teks yang bergaris bawah </u>
Codes
<p> <b> Cyberbullying </b> adalah tindakan asusila
yang menggunakan <i> media digital </i> untuk <u>
mengintimidasi, mengganggu, atau menyakiti </u>
orang lain.</p>
Output
9
Pertemuan 1 - Intro to Website and HTML
Tags in HTML
Notes:
- Tag <p> tidak berjalan jika ditulis di dalam tag heading
- Tag <b>, <i>, dan <u> bisa digunakan di dalam tag <p>
Rangkai tag <b>, <i>, dan <u> pada paragraf yang kamu buat
sebelumnya di Replit !
Gunakan tag <b> pada judul, tag <i> pada kata asing, dan
tag <u> pada kata penting !
Komentar
Codes
<!-- Ini adalah komentar -->
klik ctrl + /
10
Pertemuan 1 - Intro to Website and HTML
Tags in HTML
11
Pertemuan 1 - Intro to Website and HTML
Questions
Hari/Tanggal :
1. Apa itu website?
4. Jenis tag apa saja yang dipelajari hari ini? Sebutkan masing-
masing fungsinya!
12
PERTEMUAN 2
INTRO TO CSS
AND LIST
1. Pengenalan CSS
2. Tag List
3. Menambahkan Text Style (Color dan Font Family)
2 Intro to CSS
and List
Intro to CSS
Source: https://youtu.be/ua3Y-X6-WQc
14
Pertemuan 2 - Intro to CSS and List
Intro to CSS
Syntax!
style=”properti: value;” <!--atribut style-->
1. Inline CSS
Codes
<p style=”color: green;”> Contoh Inline CSS </p>
15
Pertemuan 2 - Intro to CSS and List
Intro to CSS
2. Internal CSS
Contoh: Codes
1. Kode nya seperti ini
h1 {
color: green
}
3. Lalu file style.css di import pada file html dengan tag <link>
16
Pertemuan 2 - Intro to CSS and List
Inline CSS
Contoh:
Codes
<p style=”color: red;”> Contoh properti color
</p>
Bagaimana caranya?
17
Pertemuan 2 - Intro to CSS and List
Intro to CSS
Codes
<p style=”color: RGB(188,143,143, 0.5)”> Contoh
properti color </p>
18
Pertemuan 2 - Intro to CSS and List
Inline CSS
Lihat kode
warna disini
Codes
<p style=”color: HSL(258, 85%, 50%)”> Contoh
properti color </p>
19
Pertemuan 2 - Intro to CSS and List
Inline CSS
Codes
<p style=”font-family: Arial;”> Contoh properti
font-family </p>
Gambar di samping
adalah beberapa
contoh font
Contoh:
Codes
<p style=”color: red; font-family:
Arial;”> Contoh gabungan 2 properti
</p>
20
Pertemuan 2 - Intro to CSS and List
Tag Lists
Kali ini kita akan mempelajari tag baru bernama Tag Lists.
Dengan <li> kita dapat mengelompokkan informasi yang
berkaitan dalam sebuah barisan.
Codes
<h3> Nama-nama Hero di Film Marvel </h3>
<ul>
<li> Thor </i>
<li> Captain America </i>
<li> Ant Man </i>
</ul>
21
Pertemuan 2 - Intro to CSS and List
Inline CSS
Kamu juga bisa mengubah tipe simbol pada unordered list dengan
menambahkan atribut type.
Atribut type dapat diisi dengan value disc
(lingkaran hitam), circle (garis lingkaran),
dan square (persegi).
Contoh:
Codes
<ul type=”square”>
Codes
<h3> Daftar Film Marvel Sesuai tahun Rilis </h3>
<ol>
<li> Captain Marvel </i>
<li> Avengers: End Game </i>
<li> Spider-Man: Far From Home </i>
</ol>
22
Pertemuan 2 - Intro to CSS and List
Tag Lists
Kamu juga bisa mengubah tipe nomor pada ordered list dengan
menambahkan atribut type.
Atribut type dapat diisi dengan value
1 (nomor), a (abjad), dan I (romawi).
Contoh:
Codes
<ol type=”1”>
23
Pertemuan 2 - Intro to CSS and List
Questions
Hari/Tanggal :
1. Apa itu CSS?
4. Jenis tag apa saja yang dipelajari hari ini? Sebutkan masing-
masing fungsinya!
24
PERTEMUAN 3
ADD SOME
DECORATION
Syntax!
<img src=”path value” alt=”text value”>
atribut alt berisi
teks alternatif yang
ditampilkan jika
gambar tidak muncul
atribut src berisi sumber gambar,
bisa berupa direktori file atau link
Contoh:
Codes
<img src=”book.png” alt=”Exploring Book”>
26
Pertemuan 3 - Add Some Decoration
Tag Image and Horizontal Rule
Contoh:
Codes
<img src=”images/book.png” alt=”Exploring Book”>
Codes
<p> Di bawah ini adalah horizontal rule </p>
<hr>
Output
27
Pertemuan 3 - Add Some Decoration
Properti Text-decoration
Syntax!
text-decoration:”value”
Contoh:
Codes
<h1 style=”text-decoration: overline”> Text
Decoration </h1>
Output
28
Pertemuan 3 - Add Some Decoration
Struktur HTML
Struktur HTML
Selain head dan body, dokumen HTML yang lengkap berisikan
struktur seperti berikut.
Codes
<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
</head>
<body>
<h1>My First Heading</h1>
<p>My first paragraph</p>
</body>
</html>
Keterangan :
<!DOCTYPE html> : singkatan dari Document Type
Declaration, menandakan dokumen dengan versi HTML5
<title> : judul website yang muncul di bagian tab
<html> : menandakan dokumen berformat HTML dan
tempat menambahkan semua elemen lainnya
<head> : bagian kepala website yang tidak ditampilkan
<body> : bagian tubuh web yang ditampilkan
<title>
<body>
29
Pertemuan 3 - Add Some Decoration
Create Website
Membuat Website
2. Buka Visual Studio Code atau code editor lainnya, buat file
baru dengan nama index.html pada folder tadi
30
Pertemuan 3 - Add Some Decoration
Create Website
Codes
<body>
<h2>Timedoor Coding Academy [1A] </h2>
<p>Ini adalah nama dan umur siswa kelas 1A
</p>
<ul type=”square”>
<li> Samuel - 13 tahun </li>
<li> Sisy - 12 tahun </li>
<li> Rizky - 15 tahun </li>
<li> Tasya - 14 tahun </li>
</ul>
</body>
31
Pertemuan 3 - Add Some Decoration
Create Website
Live Server
Jika sudah ada pada list Installed, maka lewati tahap ini.
Jika belum :
• Ketik keyword “Live Server” pada kolom search lalu pilih
hasil yang paling pertama.
• Kemudian klik Install
32
Pertemuan 3 - Add Some Decoration
Create Website
Selain itu, akan jadi lebih mudah karena kamu tidak perlu
mencari file melalui File Explorer.
2. Prettier
33
Pertemuan 3 - Add Some Decoration
Questions
Hari/Tanggal :
1. Tag apa saja yang dipelajari hari ini?
34
PERTEMUAN 4
HOW TO ADD
LINKS
Masih ingat tidak tag apa saja yang sudah kamu pelajari?
Dari semua tag yang sudah dipelajari, sebenarnya tag
dibagi menjadi 2 jenis loh!
1. Block Tag
Block Tag adalah jenis tag yang menghasilkan baris baru saat
digunakan.
Tag-tag yang termasuk ke dalam Block Tag antara lain <h1>
sampai <h6>, <p>, <ul>, <ol>, <li>, dan lain-lain
Contoh:
Codes
<h2> Tag Heading termasuk Block Tag </h2>
<p> Tag Paragraph termasuk Block Tag </p>
Output
34
Pertemuan 4 - How to Add Links
Block and Inline Tag
2. Inline Tag
Codes
<p> Tag Bold termasuk <b> Inline </b> Tag</p>
Output
Nah selanjutnya ayo kita belajar tag baru yaitu Tag Link !
35
Pertemuan 4 - How to Add Links
HTML Links
Syntax!
<a> harus berisi atribut href agar bisa terhubung dengan dokumen
yang lain.
Contoh:
Codes
<a href=”https://www.youtube.com/”> Buka Youtube
</a>
36
Pertemuan 4 - How to Add Links
HTML Links
Nah untuk mengatasinya ayo kita pelajari atribut target yang bisa
ditambahkan pada <a>.
Atribut Target
Codes
<a href=”https://www.youtube.com/” target=”blank”>
Buka Youtube </a>
Atribut Title
Codes
<a href=”mailto:timedoor@gmail.com” title=”Email
ke timedoor@gmail.com”> Kirim Email </a>
37
Pertemuan 4 - How to Add Links
Absolute and Relative URL
Ada 2 jenis link yang bisa ditambahkan pada atribut href yaitu
Absolute URL dan Relative URL.
Contoh sebelumnya termasuk ke dalam Absolute URL.
1. Absolute URL
Contoh:
Codes
<a href=”https://www.amazon.com/”> Lihat Amazon
</a>
<a href=”http://timedoor.net/about”> Profil PT.
Timedoor </a>
38
Pertemuan 4 - How to Add Links
Link to Email Address
2. Relative URL
Codes
<a href=”about.html”> Lihat Amazon </a>
<a href=”articles/first-article.html”> Profil PT.
Timedoor </a>
Codes
<a href=”mailto:timedoor@gmail.com”> Kirim Email
</a>
Buka Techdemia
dan Mainkan
Stage 3 Section 3 !
39
Pertemuan 4 - How to Add Links
Continue Website
Melanjutkan Website
Codes
<h3> Makanan Favorit Kelas 1A </h3>
<img src=”makananFavorit.jpg” alt=”Makanan
Favorit”>
<br>
<a href=”https://mcdonalds.co.id/” target=”blank”
title=”MCDonalds”> Kunjungi MCDonalds </a>
40
Pertemuan 4 - How to Add Links
Questions
Hari/Tanggal :
1. Apa itu Hyperlink? Tag apa yang digunakan untuk membuat
Hyperlink?
41
PERTEMUAN 5
GROUPING
CONTENT
5 Grouping Content
Codes
<p> Aku suka menggunakan baju berwarna <span
style=”color: red;”> merah </span> bergaris-garis
</p>
Output
43
Pertemuan 5 - Grouping Content
Tag Span and Division
Codes
<div style=”color:blue;”>
<h2> Jenis-jenis Tag </h2>
<ul>
<li> Tag Heading </li>
<li> Tag Paragraph <li>
<li> Tag Break <li>
</ul>
</div>
Output
<div> juga bisa
membungkus beberapa
<div> yang disebut
nested div.
44
Pertemuan 5 - Grouping Content
Properti Background-color
Properti CSS
Ayo kita pelajari lebih banyak properti yang ada pada CSS!
1. Properti Background-color
Contoh:
Codes
<h3 style=”background-color:cornflowerblue;”>
Contoh Properti Background-color </h3>
Output
After
Before
45
Pertemuan 5 - Grouping Content
Properti Float
2. Properti Float
Codes
<div>
<img style=”float:left;” src=”Cheering.png”
alt=”Cobee”>
<img style=”float:right” src=”Cheering.png”
alt=”Cobee”>
<img style=”float:inherit” src=”Cheering.png”
alt=”Cobee”>
</div>
Output
Left
Right
Inherit
46
Pertemuan 5 - Grouping Content
Continue Website
Melanjutkan Website
47
Pertemuan 5 - Grouping Content
Continue Website
Codes
<h3> Marvel Heroes Favorit </h3>
<br>
<div style=”float:left;”>
<div style=”float:left;”>
<img src=”captain america.png” alt=”Captain
America”>
<h4> Captain America </h4>
<p> Hero Favorit <span style=”color: dark
cyan”>Samuel</span> </p>
</div>
<div style=”float:left;”>
<img src=”wolverine.png” alt=” Wolverine”>
<h4> Wolverine </h4>
<p> Hero Favorit <span style=”color: dark
cyan”>Rizky</span> </p>
</div>
<div style=”float:left;”>
<img src=”captain marvel.png” alt=”Captain
Marvel”>
<h4> Captain Marvel </h4>
<p> Hero Favorit <span style=”color: dark
cyan”>Sisy</span> </p>
</div>
48
Pertemuan 5 - Grouping Content
Continue Website
Codes
<div style=”float:left;”>
<img src=”iron man.png” alt=”Iron Man”>
<h4> Iron Man </h4>
<p> Hero Favorit <span style=”color: dark
cyan”>Tasya</span> </p>
</div>
</div>
Nah kode di atas termasuk Nested Div karena 4 div (Child div)
dibungkus oleh 1 div (Parent Div) yang lain.
49
Pertemuan 5 - Grouping Content
Questions
Hari/Tanggal :
1. Tag apa saja yang dipelajari hari ini?
50
PERTEMUAN 6
MODELLING THE
CONTENTS
Kali ini kita akan belajar lebih banyak tentang CSS dan juga
melanjutkan website sebelumnya.
CSS Box Model adalah aturan dalam desain dan layout CSS.
Desain dan Layout CSS diibaratkan dengan sebuah Box yang
membungkus konten yang ingin ditampilkan.
Margin
Border
Padding
Content
Source: https://youtu.be/MrAnu4zdjjY
52
Pertemuan 6 - Modelling The Content
CSS Box Model
Properti CSS
1. Margin
Tanpa Margin
Antar Elemen akan berdempetan
Dengan Margin
Antar Elemen diberi jarak sesuai value yang dimasukkan
Margin Right
Margin Left
Margin Left
Elemen Elemen
Margin Bottom Margin Bottom
53
Pertemuan 6 - Modelling The Content
Margin Property
Syntax!
<!--mengatur semua margin sekaligus-->
style=”margin:value;”
2. Border
54
Pertemuan 6 - Modelling The Content
Border Property
Codes
<p style=”border-style:dotted; border-color:red;
border-width:5px;”>Dotted Red Border</p>
Output
55
Pertemuan 6 - Modelling The Content
Padding Property
3. Padding
Padding digunakan untuk menambahkan ruang di sekitar
elemen, tetapi masih di dalam border.
Output
Syntax!
<!--mengatur semua padding sekaligus-->
style=”padding:value;”
56
Pertemuan 6 - Modelling The Content
Display Property
Selain Margin, Border, dan Padding kali ini kita juga akan
mempelajari properti Display.
4. Display
Codes
<p style=”display:inline; background-color:
cornflowerblue;”>Inline</p>
1. None
2. Inline
Contoh:
57
Pertemuan 6 - Modelling The Content
Display Property
3. Block
Display Block akan memblok penuh konten dari ujung kiri sampai
ujung kanan halaman browser
Contoh:
4. Inline-Block
58
Pertemuan 6 - Modelling The Content
Continue Website
Contoh:
5. Flex
Display Flex mirip seperti block tetapi pada display flex bisa
mengatur posisi konten secara fleksibel.
Melanjutkan Website
Codes
<img src=”makananFavorit.jpg” alt=”Makanan
Favorit” style=”margin-left:auto; margin-
right:auto; display:block;>
59
Pertemuan 6 - Modelling The Content
Continue Website
Kedua, tambahkan atribut style pada List Nama Siswa seperti ini!
Codes
<ul type=”square” style=”background-
color:cadetblue; padding:10px; display:inline-
block; margin-left:30px;”>
<!-- kode list -->
<ul>
Lihat hasilnya menjadi seperti ini!
Output
60
Pertemuan 6 - Modelling The Content
Questions
Hari/Tanggal :
1. Apa saja yang terdapat pada aturan CSS Box Model?
61
PERTEMUAN 7
Styling Text
7 Styling Text
Kali ini kita akan belajar cara menulis kode yang benar dan rapi
di HTML !
1. Lowercase
HTML pada umumnya tidak terpengaruh oleh huruf besar atau
kecil, tapi lebih baik menulis tag, atribut, properti, dan value
dengan huruf kecil
63
Pertemuan 7 - Styling Text
HTML Style Guide
GOOD
Codes
<p style=”background-color:cornflowerblue;”> Tips
Menulis Kode HTML </p>
BAD
Codes
<P Style=”Background-color:Cornflowerblue;”> Tips
Menulis Kode HTML </P>
2. Menggunakan Spasi
GOOD
Codes
<img src=”supermarket.jpg” alt=”Supermarket;”>
BAD
Codes
<img src = ”supermarket.jpg” alt = ”Supermarket;”>
64
Pertemuan 7 - Styling Text
HTML Style Guide
GOOD
Codes
<p>
3 negara dengan penduduk terbanyak di dunia
dimulai dari China, India,dan Amerika Serikat.
China dengan jumlah penduduk 1,4 juta orang,
India dengan jumlah penduduk 1,3 juta orang,
dan Amerika Serikat 335 ribu orang
</p>
Codes
<div>
<h4> Apa itu Cyberbullying? </h4>
<p> Cyberbullying adalah tindakan perundungan
di
internet </p>
65
Pertemuan 7 - Styling Text
HTML Style Guide
BAD
Codes
<div>
<h4> Apa itu Cyberbullying?
<p> Cyberbullying adalah tindak perundungan di
internet
5. Indentasi
Indentasi adalah hal yang paling penting dalam merapikan kode.
Gunakan indentasi jika suatu kode ada di dalam kode lainnya.
GOOD
Codes
<h3> Personil The Beatles </h3>
<ul>
<li> John Lennon </li>
<li> Paul Mccartney </li>
<li> George Harrison </li>
<li> Ringo Star </li>
</ul>
BAD
Codes
<h3> Personil The Beatles </h3>
<ul>
<li> John Lennon </li>
<li> Paul Mccartney </li>
<li> George Harrison </li>
<li> Ringo Star </li>
</ul>
66
Pertemuan 7 - Styling Text
Font-size Property
Properti CSS
1. Properti Font-size
Contoh:
Codes
<p style=”font-size:15px;”> Menggunakan Properti
Font-size </p>
67
Pertemuan 7 - Styling Text
Text-align Property
2. Properti Text-align
Codes
<p style=”text-align:center;”> Text Alignment
Center </p>
68
Pertemuan 7 - Styling Text
Shadow Property
3. Properti Shadow
text-shadow box-shadow
1. Text-shadow
Codes
<h2 style=”text-shadow:2px 2px;”> Apa itu hoax?
</p>
Codes
<h2 style=”text-shadow:2px 0px 5px blue;”> Apa
itu hoax? </p>
69
Pertemuan 7 - Styling Text
Shadow Property
2. Box-shadow
Codes
<h2 style=”box-shadow:5px 5px;”> Apa itu hoax?
</p>
Codes
<h2 style=”box-shadow:5px 5px 5px blue;”> Apa
itu hoax? </p>
70
Pertemuan 7 - Styling Text
Continue Website
Melanjutkan Website
1. Menambahkan Text-align
71
Pertemuan 7 - Styling Text
Continue Website
BEFORE
AFTER
2. Menambahkan Shadow
72
Pertemuan 7 - Styling Text
Continue Website
73
Pertemuan 7 - Styling Text
Questions
Hari/Tanggal :
74
PERTEMUAN 8
REVIEW AND
MIDDLE TEST
HTML
Website CSS
JS
76
Pertemuan 8 - Review and Middle Test
Review
1. Heading <h1>
Syntax!
<h1> Heading 1 </h1>
<h2> Heading 2 </h2>
<h3> Heading 3 </h3>
<h4> Heading 4 </h4>
<h5> Heading 5 </h5>
<h6> Heading 6 </h6>
2. Paragraph <p>
3. Break <br>
Tag Break digunakan untuk membuat baris baru. Tag break
termasuk dalam empty tag karena tidak memerlukan tag
penutup.
Syntax!
<br>
77
Pertemuan 8 - Review and Middle Test
Review
4. Bold <b>
Syntax!
<b> Teks yang dicetak tebal </b>
5. Italic <i>
Syntax!
<i> Teks yang dicetak miring </i>
6. Underline <u>
Syntax!
<u> Teks yang bergaris bawah </u>
78
Pertemuan 8 - Review and Middle Test
Review
Contoh:
Codes
<h3> Nama-nama Hero di Film Marvel </h3>
<ul type=”square”>
<li> Thor </i>
<li> Captain America </i>
<li> Ant Man </i>
</ul>
Codes
<h3> Daftar Film Marvel Sesuai tahun Rilis </h3>
<ol type=”1” >
<li> Captain Marvel </i>
<li> Avengers: End Game </i>
<li> Spider-Man: Far From Home </i>
</ol>
Syntax!
<img src=”value” alt=”value”>
79
Pertemuan 8 - Review and Middle Test
Review
Syntax!
<a href=”url” target=”blank” title=”Nama Teks”>
Teks yang menuju ke link </a>
Email address
Hyperlink juga bisa langsung terhubung ke email dengan cara
menambahkan value mailto pada atribut href.
80
Pertemuan 8 - Review and Middle Test
Review
Contoh:
Codes
<p> Aku suka menggunakan baju berwarna <span
style=”color: red;”> merah </span> bergaris-garis
</p>
Contoh:
Codes
<div style=”color:blue;”>
<h2> Jenis-jenis Tag </h2>
<ul>
<li> Tag Heading </li>
<li> Tag Paragraph <li>
<li> Tag Break <li>
</ul>
</div>
81
Pertemuan 8 - Review and Middle Test
Review
Properti CSS
1.1.Mengubah
Color Warna Tulisan
Untuk mengubah warna tulisan dapat menggunakan properti
color.
Contoh:
Codes
<p style=”color: red;”> Contoh properti color </
2. Font-family
Untuk mengubah warna tulisan dapat menggunakan properti
font-family.
Contoh:
Codes
<p style=”font-family: Arial;”> Contoh properti
font-family </p>
82
Pertemuan 8 - Review and Middle Test
Review
Codes
<p style=”color: red; font-family: Arial;”> Con-
toh gabungan 2 properti </p>
1.4.Mengubah
Text-decoration
Warna Tulisan
Properti text-decoration digunakan untuk menambahkan
dekorasi garis pada suatu teks.
Contoh:
Codes
<p style=”text-decoration: underline wavy;>
Contoh Text Decoration </p>
5. Background-color
Codes
<h3 style=”background-color:cornflowerblue;”>
Contoh Properti Background-color </h3>
83
Pertemuan 8 - Review and Middle Test
Review
6. Float
Codes
<img style=”float:left;” src=”Cheering.png”
alt=”Cobee”>
Margin
Border
Padding
Content
CSS Box Model adalah aturan dalam desain dan layout CSS.
Desain dan Layout CSS diibaratkan dengan sebuah Box yang
membungkus konten yang ingin ditampilkan.
84
Pertemuan 8 - Review and Middle Test
Review
8. Margin
Contoh:
Codes
<p style=”margin:10px; background-color:blue;”>
Contoh Margin </p>
9. Border
Codes
<p style=”border-style:dotted;”> Contoh Padding
</p>
10. Padding
Codes
<p style=”padding:10px; background-color:blue;”>
Contoh Padding </p>
85
Pertemuan 8 - Review and Middle Test
Review
11. Display
Codes
<p style=”display:inline; background-color:
cornflowerblue;”>Inline</p>
12. Font-size
Codes
<p style=”font-size:15px;”> Menggunakan Properti
Font-size </p>
13. Text-align
86
Pertemuan 8 - Review and Middle Test
Review
Codes
<p style=”text-align:center;”> Text Alignment
Center </p>
1. Text-shadow
Codes
<h2 style=”text-shadow:2px 0px 5px blue;”> Apa
itu hoax? </p>
2. Box-shadow
Codes
<h2 style=”box-shadow:5px 5px 5px blue;”> Apa
itu hoax? </p>
87
Pertemuan 8 - Review and Middle Test
Middle Test
Middle Test
2. Coding
88
PERTEMUAN 9
Nah untuk itu ayo kita belajar menggunakan properti CSS width
dan height untuk mengatur ukuran gambar !
Contoh:
Codes
<img src=”image1.jpg” alt=”City” width=”50%”
height=”50%”>
90
Pertemuan 9 - Remake What You Have Learned
Animated Images
Animated Images
Codes
<img src=”smile.gif” alt=”Smile Emoji”>
Kemudian Copy
pada GIF Link
91
Pertemuan 9 - Remake What You Have Learned
HTML Project
Codes
<img src=”https://media.giphy.com/media/l0MYt-
jhrNDLnlKf28/giphy.gif” alt=”Smile Emoji”>
Nah kali ini kita akan belajar properti Display lagi khususnya
untuk Display Flex.
Source: https://youtu.be/m3OjWNFREJo
92
Pertemuan 9 - Remake What You Have Learned
HTML Project
1 2 3
Flex items
Flex container
Contoh:
Codes
<div style=”display:flex”>
<div>
<img src=”smile.gif” alt=”Smiley”>
<h3 style=”text-align:center”>Contoh</h3>
</div>
<div>
<img src=”smile.gif” alt=” Smiley”>
<h3 style=”text-align:center”>Contoh</h3>
</div>
</div>
Output
93
Pertemuan 9 - Remake What You Have Learned
HTML Project
1. Flex-direction
Untuk mengatur arah barisan items.
1 2 3 1
Contoh:
2
Codes
<div style=”display:flex;
flex-direction:column;”>
3
2. Flex-wrap
Untuk mengatur penempatan item saat jumlahnya banyak.
Apakah ukurannya disesuaikan (nowrap) atau ukuran item
tetap dan item dilanjutkan di baris selanjutnya (wrap).
Wrap
1 2 3 4 5
6 7
94
Pertemuan 9 - Remake What You Have Learned
HTML Project
Nowrap (default)
1 2 3 4 5 6 7
Contoh:
Codes
<div style=”display:flex;flex-wrap:wrap;”>
3. Justify-content
Untuk mengatur letak flex items ke arah horizontal jika flex-
directionnya tidak diatur (Row).
Flex-start (kiri)
1 2 3
Center
1 2 3
Flex-end (kanan)
1 2 3
95
Pertemuan 9 - Remake What You Have Learned
HTML Project
Space-between
Item 1 di ujung kiri (start line), item terakhir di ujung kanan
1 2 3
Space-around
Item tengah memiliki ruang yang sama pada kedua sisi.
1 2 3
Space-evenly
Semua item memiliki ruang yang sama di kedua sisi
1 2 3
Contoh:
Codes
<div style=”display:flex;justify-content:center;”>
4. Align-items
Untuk mengatur letak flex items secara vertikal jika flex-
directionnya tidak diatur (Row).
96
Pertemuan 9 - Remake What You Have Learned
HTML Project
Flex-start (atas)
1 2 3
Center
1 2 3
Flex-end (bawah)
1 2 3
1 2 3
97
Pertemuan 9 - Remake What You Have Learned
HTML Project
Contoh:
Codes
<div style=”display:flex;align-
items:center;”>
Nah kali ini kita juga akan membuat sebuah website baru.
Website pribadi/
blog
98
Pertemuan 9 - Remake What You Have Learned
HTML Project
Website
e-commerce/toko
Website
perusahaan
menampilkan informasi
perusahaan seperti
portofolio dan kontak
Website
berita
menampilkan
informasi/berita terkini
99
Pertemuan 9 - Remake What You Have Learned
HTML Project
2. Mencari Assets
Contohnya :
freepik.com vecteezy.com
pinterest.com unsplash.com
vector4free.com vector4free.com
100
Pertemuan 9 - Remake What You Have Learned
HTML Project
Compress Image
Compress Image yg kamu download agar ukurannya tidak
terlalu besar sehingga website mu jadi lebih ringan.
3. Buat Project
101
Pertemuan 9 - Remake What You Have Learned
HTML Project
102
Pertemuan 9 - Remake What You Have Learned
Questions
Hari/Tanggal :
103
PERTEMUAN 10
STYLING WITH
INTERNAL CSS
1. Internal CSS
2. Melanjutkan Website
Codes
<p style=”color:blue;”> Contoh 1 Inline CSS </p>
<p style=”color:blue;”> Contoh 2 Inline CSS </p>
Codes
<head>
<style>
Selector p {
color: blue;
}
</style>
</head>
103
Pertemuan 10 - Styling With Internal CSS
Internal CSS
Codes
<p> Contoh 1 Inline CSS </p>
<p> Contoh 2 Inline CSS </p>
Output
1. Simple Selector
Element Selector
104
Pertemuan 10 - Styling With Internal CSS
Internal CSS
Codes
<head>
<style>
h2 {
color: blue;
text-align: center;
}
p {
color: red;
background-color:black;
}
</style>
</head>
ID Selector
105
Pertemuan 10 - Styling With Internal CSS
Internal CSS
Codes
<head>
<style>
#demo {
color: green;
text-align: center;
}
</style>
</head>
Class Selector
Codes
<head>
<style>
.important {
color: red;
background-color: black;
}
</style>
</head>
106
Pertemuan 10 - Styling With Internal CSS
Internal CSS
Codes
<head>
<style>
p.important {
color: red;
background-color: black;
}
</style>
</head>
107
Pertemuan 10 - Styling With Internal CSS
Internal CSS
Apakah tag <h2> juga mengikuti style CSS yang kamu buat?
Codes
<head>
<style>
.important {
color: red;
background-color: black;
}
.fancy {
text-shadow: 2px 2px 3px green;
}
</style>
</head>
108
Pertemuan 10 - Styling With Internal CSS
Internal CSS
2. Universal Selector
Codes
<head>
<style>
* {
color: white;
}
</style>
</head>
3. Grouping Selector
Codes
<head>
<style>
h1, h2, h3, p {
color: red;
}
table, tr, td {
border: 2px;
}
</style>
</head>
109
Pertemuan 10 - Styling With Internal CSS
Continue Website
Bagaimana ya caranya ?
Ikuti Tips berikut ini agar kamu tidak bingung ya !
Contoh:
<h1>
<h2>
<p>
110
Pertemuan 10 - How About Table?
Continue Website
Codes
<head>
<style>
h1, h2, p {
text-align: center;
}
</style>
</head>
Contoh:
Margin: 10px
111
Pertemuan 10 - How About Table?
Continue Website
Codes
<head>
<style>
.item {
margin: 10px;
}
</style>
</head>
Codes
<div class=”item”>
<img src=”assets/img1.jpg”>
<h3>Full White Bouquet </h3>
<p>IDR 150.000</p>
<p>For Wedding or Birthday Present</p>
</div>
112
Pertemuan 10 - How About Table?
Questions
Hari/Tanggal :
1. Apa perbedaan Inline CSS dan Internal CSS ?
113
PERTEMUAN 11
1. Menambahkan Tabel
2. Menambahkan Border Tabel
3. Menggunakan Atribut Rowspan dan Colspan
1. Table <table>
Syntax!
<table>
....
....
</table>
115
Pertemuan 11 - How About Table in HTML?
Add Table
2. Baris <tr>
Syntax!
<table>
<tr>
....
</tr>
</table>
<tr> </tr>
<tr> </tr>
<tr> </tr>
116
Pertemuan 11 - How About Table in HTML?
Add Table
3. Kolom/Data <td>
Syntax!
<table>
<tr>
<td> Data Pertama </td>
<td> Data Kedua </td>
</tr>
</table>
4. Header<th>
Syntax!
<table>
<tr>
<th> Items </th>
<th> Color </th>
</tr>
</table>
117
Pertemuan 11 - How About Table in HTML?
Add Table
Contoh:
Codes
<table>
<tr>
<th> Items </th>
<th> Color </th>
</tr>
<tr>
<td> Gaming Keyboard</td>
<td> Black </td>
</tr>
<tr>
<td> Gaming Chairs </td>
<td> White </td>
</tr>
</table>
Output
118
Pertemuan 11 - How About Table in HTML?
Table Border
Contoh:
Codes
<head>
<style>
table, tr, th, td {
border: 2px solid blue;
}
</style>
</head>
Output
119
Pertemuan 11 - How About Table in HTML?
Table Border
Contoh:
Codes
<head>
<style>
table, tr, th, td {
border: 2px solid blue;
border-collapse: collapse;
}
</style>
</head>
Output
120
Pertemuan 11 - How About Table in HTML?
Colspan and Rowspan
1. Colspan
Codes
<table>
<tr>
<th> No </th>
<th> Items </th>
<th colspan=”2” > Color </th>
</tr> jumlah
<tr> kolom
<td></td> yang ingin
<td></td> digabung
<td> Main Color </td>
<td> Secondary Color </td>
</tr>
<tr>
<td> 1 </td>
<td> Gaming Keyboard</td>
<td> Black </td>
<td> Blue </td>
</tr>
<tr>
<td> 2 </td>
<td> Gaming Keyboard</td>
<td> White </td>
<td> Black </td>
</tr>
</table>
121
Pertemuan 11 - How About Table in HTML?
Colspan and Rowspan
Output
colspan=”2”
2. Rowspan
Rowspan digunakan untuk menyatukan kolom secara vertikal.
Contoh:
Codes
<table>
<tr>
<th rowspan=”2”> No </th>
<th rowspan=”2”> Items </th>
<th colspan=”2” > Color </th>
</tr>
<tr>
<td> Main Color </td>
<td> Secondary Color </td>
</tr>
<tr>
<td> 1 </td>
<td> Gaming Keyboard</td>
<td> Black </td>
<td> Blue </td>
</tr>
<tr>
<td> 2 </td>
<td> Gaming Chair</td>
<td> White </td>
<td> Black </td>
</tr>
</table>
122
Pertemuan 11 - How About Table in HTML?
Colspan and Rowspan
rowspan=”2” rowspan=”2”
Output
123
Pertemuan 11 - How About Table in HTML?
Questions
Hari/Tanggal :
1. Tag apa saja yang digunakan untuk membuat Tabel?
124
PERTEMUAN 12
MORE CREATIVE
WEBSITE
Nah untuk itu, yuk hari ini mempelajari styling pada tabel agar
tabel jadi lebih menarik !
Width
Jika properti width tidak ditulis, maka lebar tabel akan mengikuti
panjang konten.
Output
126
Pertemuan 12 - More Creative Website
Styling Table
Codes
<head>
<style>
table {
width: 100%;
}
</style>
</head>
Height
Codes
<head>
<style>
th {
height:70px;
}
</style>
</head>
127
Pertemuan 12 - More Creative Website
Styling Table
2. Alignment
Horizontal
Output
center
left (default)
128
Pertemuan 12 - More Creative Website
Styling Table
Vertical
Output
middle
(default)
top
bottom
3. Padding
tanpa padding
129
Pertemuan 12 - More Creative Website
Styling Table
color
background-color
Hover
Hover adalah selector yang berfungsi untuk menambahkan style
saat mouse diarahkan ke kolom.
130
Pertemuan 12 - More Creative Website
Styling Table
Codes
<head>
<style>
tr:hover {
background-color: #BCBCBD;
}
</style>
</head>
5. Striped Table
Codes
<head>
<style>
tr:nth-child(even) {
background-color: #BCBCBD;
}
</style>
</head>
131
Pertemuan 12 - More Creative Website
Tag Section
Nah kali ini kita akan belajar tag Section pada HTMl.
1. Section <section>
Syntax!
<section>
......
</section>
Section Banner
132
Pertemuan 12 - More Creative Website
Continue Website
Section Welcome
Section Portofolio
Contoh:
Codes
<section>
<div class=”menu”>
<h3> Best Seller </h3>
<img src=”product.jpg” alt=”Best Seller”>
</section>
133
Pertemuan 12 - More Creative Website
Continue Website
Melanjutkan Website
1. Menambahkan Section
2. Menambahkan Tabel
134
Pertemuan 12 - More Creative Website
Continue Website
Contoh:
Contoh kode:
Codes
<td> <img src=”image1.jpg”> <td>
135
Pertemuan 12 - More Creative Website
Questions
Hari/Tanggal :
1. Apa yang terjadi saat kamu menambahkan properti
width: 100% pada tabel ?
136
PERTEMUAN 13
VISUAL
CUSTOMIZATION
13 Visual Customization
Nah sama seperti teks dan tabel, properti border juga bisa
ditambahkan pada gambar loh !
138
Pertemuan 13 - Visual Customization
Styling Image
Codes
<head>
<style>
img {
border: 20px solid rgb(231, 133, 187);
}
</style>
</head>
Output
Border-radius
Properti border-radius digunakan untuk mengatur ketajaman
sudut gambar.
Kamu bisa menggunakan satuan px ataupun %.
Codes
<head>
<style>
img {
border-radius: 8px;
}
</style>
</head>
139
Pertemuan 13 - Visual Customization
Styling Image
Output
140
Pertemuan 13 - Visual Customization
Styling Image
2. Box-shadow
3. Opacity
141
Pertemuan 13 - Visual Customization
Styling Image
Contoh:
Codes
<head>
<style>
img {
opacity: 0.5;
}
img:hover {
opacity: 1;
}
</style>
</head>
142
Pertemuan 13 - Visual Customization
Add Background
4. Image Background
Syntax!
selector {
background-image: url(‘nama_file’);
}
Background-image bisa kamu tambahkan pada elemen
apapun yang membutuhkannya.
Background-size
Nah untuk mengatur ukuran background agar sesuai, gunakan
properti background-size. Value background-size terdiri dari
auto, cover, dan contain, atau atur dengan ukuran px dan %.
Auto
Otomatis
mengikuti ukuran
asli gambar
Cover
Otomatis mengikuti ukuran website
143
Pertemuan 13 - Visual Customization
Add Background
Contain
Biasanya digunakan untuk menggabungkan 2 background.
contain cover
Codes
<head>
<style>
.banner{
background-image: url(‘cobee.png’),
url(‘bg.jpg’)
background-size: contain, cover;
background-repeat: no-repeat;
}
</style>
</head>
Background-repeat
Background-repeat digunakan untuk mengatur apakah gambar
akan ditampilkan berulang atau tidak, saat menggunakan
background-size auto atau contain.
repeat (default) no-repeat
144
Pertemuan 13 - Visual Customization
Continue Website
Melanjutkan Website
Codes
<head>
<style>
.item {
margin: 10px;
//tambahkan kode di bawah ini
background-color: gainsboro;
}
</style>
</head>
145
Pertemuan 13 - Visual Customization
Continue Website
Codes
<head>
<style>
h3, p {
text-align: center;
padding: 5px;
color: steelblue;
}
</style>
Output
146
Pertemuan 13 - Visual Customization
Continue Website
147
Pertemuan 13 - Visual Customization
Continue Website
Contoh:
Codes
<head>
<style>
body {
background-image: url(‘assets/bg.jpg’);
background-size: cover;
}
</style>
</head>
Contoh:
Codes
<head>
<style>
section.cover {
background-image: url(‘assets/bg.jpg’);
background-size: cover;
}
</style>
</head>
148
Pertemuan 13 - Visual Customization
Continue Website
149
Pertemuan 13 - Visual Customization
Questions
Hari/Tanggal :
1. Apa fungsi properti border-radius ?
150
PERTEMUAN 14
MANY MORE
STYLING FONT
Google Fonts
Codes
<head>
<link href=”https://fonts.googleapis.com/css2?
family=Montserrat:wght@100&display=swap” rel=”
stylesheet”>
</head>
152
Pertemuan 14- Many More Styling Font
Google Font
153
Pertemuan 14- Many More Styling Font
Google Font
Codes
<head>
<link rel=”preconnect” href=”https://fonts.
gstatic.com”>
<link href=”https://fonts.googleapis.com/
css2?family=Dancing+Script&display=swap” rel=”
stylesheet”>
<style>
p {
font-family: ‘Dancing Script’, cursive;
}
</style>
</head>
2. Font Effect
154
Pertemuan 14- Many More Styling Font
Google Font
Contoh:
Codes
<head>
<link rel=”preconnect” href=”https://fonts.
gstatic.com”>
<link href=”https://fonts.googleapis.com/
css2?family=Dancing+Script&effect=anaglyph”
rel=”stylesheet”>
</head>
Codes
<p class=”font-effect-anaglyph”> Anaglyph Effect
</p>
Output
155
Pertemuan 14- Many More Styling Font
Google Font
font-effect-anaglyph
font-effect-3d
font-effect-3d-float
font-effect-fire
font-effect-fire-animation
font-effect-shadow-mutiple
font-effect-neon
font-effect-outline
font-effect-emboss
156
Pertemuan 14- Many More Styling Font
Google Font
Contoh:
Codes
<head>
<link rel=”preconnect” href=”https://fonts.
gstatic.com”>
<link href=”https://fonts.googleapis.com/
css2?family=Dancing+Script|Roboto|Monserrat
&effect=anaglyph|fire” rel=”stylesheet”>
<style>
p.a {
font-family: ‘Dancing Script’, cursive;
}
p.b {
font-family: ‘Roboto’, sans-serif;
}
p.c {
font-family: ‘Monserrat’, serif;
}
</style>
</head>
157
Pertemuan 14- Many More Styling Font
Font Property
1. Font Style
Font style adalah cara lain untuk membuat teks cetak miring
(italic).
Value properti font-style bisa diisi dengan normal (default),
italic, atau oblique (sangat mirip dengan italic).
2. Font Weight
158
Pertemuan 14- Many More Styling Font
Font Property
Contoh
3. Font Variant
Contoh:
Codes
<head>
<style>
p {
font-variant:small-caps;
}
</style>
</head>
<body>
<p> Contoh Small-caps </p>
<body>
Output
159
Pertemuan 14- Many More Styling Font
Font Property
4. Font Shorthand
Codes
<head>
<style>
p {
font:italic 20px Monserrat;
}
</style>
</head>
160
Pertemuan 14- Many More Styling Font
Continue Website
Melanjutkan Website
2. Jika ingin menggunakan lebih dari 1 jenis font, cek font lain
yang cocok pada bagian Pairings.
161
Pertemuan 14 - Many More Styling Font
Questions
Hari/Tanggal :
1. Tag apa yang ditambahkan pada <head> untuk
menggunakan Google Font?
162
PERTEMUAN 15
ADVANCE 1
EXAM
ADVANCE 1
EXAM
EXTERNAL CSS
1 External CSS
Nah kali ini kita akan menggunakan cara yang ketiga yaitu
External CSS.
Gunakan tag <link> untuk import file css pada dokumen html.
Syntax!
<link rel=”stylesheet” type=”text/css”
href=”namafile.css”>
169
Pertemuan 1- External CSS
Move to External CSS
Codes
<head>
<!-- tambahkan kode di bawah ini -->
<link rel=”stylesheet” type=”text/css”
href=”style.css”>
</head>
170
Pertemuan 1- External CSS
Move to External CSS
Responsive Website
Source: https://www.youtube.com/watch?v=bW2FZOtEOqQ
171
Pertemuan 1- External CSS
Move to External CSS
1. Atur Viewport
172
Pertemuan 1- External CSS
Move to External CSS
Codes
<head>
<!-- cek kode viewport di tag head -->
<meta name=”viewport” content=”width=device-width,
initial-scale=1.0”>
</head>
2. Responsive Image
Codes
.portrait {
width: 260px;
height: 350px;
}
173
Pertemuan 1- External CSS
Move to External CSS
After
Codes
.portrait {
max-width: 100%;
max-height: 350px;
}
Codes
<img src=”img1.jpg” alt=”Tulip”
class=”portrait”>
After
Codes
<img src=”img1.jpg” alt=”Tulip”
class=”portrait” width=”260px” height=”auto” >
174
Pertemuan 1- External CSS
Move to External CSS
Tenang...
Gurumu akan mendemokan
langkah di atas untuk
melihat perubahannya!
3. Responsive Font-size
175
Pertemuan 1- External CSS
Move to External CSS
Codes
@media (max-width: 600px) {
* {
font-size: 2vw;
margin: 2px;
}
}
Media query bernilaii True atau False. Jadi kode di atas berarti:
Jika lebar layar 600px atau kurang dari itu (True),
maka font-size di atur menjai 2vw dan margin 2px.
https://new-florists-shop.netlify.app/
176
Pertemuan 1- External CSS
Move to External CSS
Melanjutkan Website
177
Pertemuan 1- External CSS
Move to External CSS
Hari/Tanggal :
1. Apa itu External CSS?
178
PERTEMUAN 2
BODY STRUCTURE
2 Body Structure
HEADER <header>
MAIN <main>
FOOTER <footer>
181
Pertemuan 2- Body Structure
Header, Main, Footer
Header
Main
Footer
Contoh Kode :
Codes
<!DOCTYPE html>
<html>
<head>
<title> </title>
</head>
<body>
<header>
<img src=”logo.png” alt=”Logo”>
</header>
<main>
<h3> Timedoor Coding Academy </h3>
</main>
<footer>
<p> Instagram : @timedooracademy
</footer>
</body>
</html>
182
Pertemuan 2- Body Structure
Header, Main, Footer
Jika nav di klik, maka bisa dibawa menuju ke section yang lain
(Anchor Link) atau ke halaman baru (Hyperlink).
183
Pertemuan 2- Body Structure
Navigation
nav menu
Contoh Kode :
Codes
<nav>
<a href=”#home”> Home </a> |
<a href=”#features”> Features </a> |
<a href=”#about”> About Us </a> |
</nav>
184
Pertemuan 2- Body Structure
Continue Website
Melanjutkan Website
Codes
<body>
<header>
</header>
<main>
</main>
<footer>
</footer>
185
Pertemuan 2- Body Structure
Continue Website
1. Header
Header yang akan kita tambahkan kali ini hanya akan berisi judul
website.
Codes
<header>
<div class=”main-header” >
<h3 class=”header-info”>
<a href=”index.html”> Florist Shop
</a>
</h3>
</div>
</header>
Codes
.main-header {
background-color: (245, 235, 220);
padding-left: 10px;
padding-top: 3px;
padding-bottom : 3px;
}
.header-info {
text-align: left;
color: rgb(219, 84, 75);
}
.header-info a {
padding: 0;
text-decoration: none;
}
186
Pertemuan 2- Body Structure
Continue Website
Codes
.header-info a:hover {
background-color: transparent
}
Output
2. Main
Codes
<main>
<div>
<section class=”cover”>
<div>
<!-- ...dan seterusnya-->
</main>
3. Footer
187
Pertemuan 2- Body Structure
Continue Website
Codes
<footer>
<div class=”center-footer”>
<div class=”main-footer”>
<div class=”left-footer”>
<h3 class=”info-left”> <b>Address
</b></h3>
<p class=”info-left”> Tukad Yeh Aya
Street No.45, Renon,Denpasar</p>
</div>
<div class=”right-footer”>
<h3 class=”info-right”> <b>Contacts
</b></h3>
<p class=”info-right”>Phone:
087876667564</p>
<p class=”info-right”>Instagram :
@floristshop</p>
</div>
</div>
<div class=”main-footer”>
<p class=”info-center”>Copyright
© 2021 Designed by Florist
Shop</p>
</div>
</div>
</footer>
188
Pertemuan 2- Body Structure
Continue Website
Codes
footer {
background-color: rgb(245, 235, 220);
}
.main-footer {
display: flex;
justify-content: center;
width: 100%;
}
.left-footer {
margin-right: auto;
margin-left: 40px;
}
.right-footer {
margin-left: auto;
margin-right: 40px;
}
.center-footer {
margin-left: 20px;
margin-right: 20px;
}
.info-left {
color: rgb(219, 84, 75);
text-align: left;
width: 100%;
}
189
Pertemuan 2- Body Structure
Continue Website
Codes
.info-right {
color: rgb(219, 84, 75);
text-align: right;
width: 100%;
}
.info-center {
color: rgb(219, 84, 75);
text-align: center;
width: 100%;
padding-top: 5px;
border-top: 1px solid rgb(146, 168, 133);
}
Output
190
Pertemuan 2 - Body Structure
Questions
Hari/Tanggal :
1. Apa saja bagian-bagian yang terdapat pada tag Body?
191
PERTEMUAN 3
NAV POSITIONING
3 Nav Positioning
1. Static
Codes
.static {
position: static;
border: 2px solid steelblue;
}
Codes
<p class=”static”> Contoh Static Position <p>
195
Pertemuan 3- Nav Positioning
Position
2. Relative
Codes
.relative {
position: relative;
border: 2px solid steelblue;
left: 30px;
}
Codes
<p class=”relative”> Contoh Relative Position
<p>
196
Pertemuan 3- Nav Positioning
Position
3. Absolute
Codes
.absolute {
position: absolute;
border: 2px solid steelblue;
right: 0;
bottom: 0;
}
Codes
<p class=”absolute”> Absolute <p>
197
Pertemuan 3- Nav Positioning
Position
Codes
div.relative {
position: relative;
border: 2px solid steelblue;
width: 200px;
height: 300px;
}
Codes
<div class=”relative”>
<p>Contoh Relative Position</p>
<div>
<p class=”absolute”>Absolute</p>
</div>
</div>
198
Pertemuan 3- Nav Positioning
Position
4. Fixed
Codes
.fixed {
position: fixed;
border: 2px solid steelblue;
right: 0;
bottom: 0;
}
Contoh kode HTML:
Codes
<p class=”fixed”> Fixed <p>
199
Pertemuan 3- Nav Positioning
Position
5. Sticky
Biasanya
digunakan
pada
Navigation
Codes
.sticky {
position: sticky;
border: 2px solid steelblue;
right: 0;
top: 50px;
}
200
Pertemuan 3- Nav Positioning
Position
Codes
<p class=”sticky”> I am Sticky ! <p>
Nah selain properti top, right, bottom, dan left yang melengkapi
properti position, ada juga properti z-index.
z-index
z-index = 1
Value dari z-index terdiri z-index = 2
dari auto, angka (seperti
contoh di samping), atau z-index = 3
inherit.
201
Pertemuan 3- Nav Positioning
Jumbotron
Jumbotron
Contoh jumbotron
di atas nav
Navigation Bar
202
Pertemuan 3- Nav Positioning
Navbar
1. Vertical Navbar
Codes
nav {
width: 200px;
margin: 0;
padding: 0;
}
a {
display: block;
background-color:rgb(151, 153, 153);
text-decoration: none;
color: whitesmoke;
padding: 4px;
}
a:hover {
background-color: burlywood;
}
203
Pertemuan 3- Nav Positioning
Navbar
Codes
<nav>
<a href=”#home”>Home</a>
<a href=”#price”>Price</a>
<a href=”#about”>About Us</a>
</nav>
Output
2. Horizontal Navbar
204
Pertemuan 3- Nav Positioning
Continue Website
Output
Melanjutkan Website
205
Pertemuan 3- Nav Positioning
Continue Website
Codes
<header>
<div class=”main-header”>
<h3 class=”header-info”>Florist Shop</h3>
<nav>
<a href=”#home”>Home</a>
<a href=”#price”>Price</a>
<a href=”#about”>About Us</a>
</nav>
</div>
</header>
Codes
nav {
position: absolute;
right: 0;
display: flex;
}
a {
text-decoration: none;
color: rgb(219, 84, 75);
padding: 15px;
float: left;
}
a:hover {
background-color: burlywood;
}
206
Pertemuan 3- Nav Positioning
Continue Website
Codes
.main-header {
background-color: rgb(245, 235, 220);
padding-left: 10px;
<!-- padding-top: 3px; -->
<!-- padding-bottom: 3px; -->
position: fixed;
top: 0px;
left: 0px;
right: 0px;
height: 50px;
}
.header-info {
text-align: left;
color: rgb(219, 84, 75);
padding: 0px;
margin: 14px;
position: absolute;
left: 0px;
}
Hasilnya menjadi seperti ini
207
Pertemuan 3- Nav Positioning
Questions
Hari/Tanggal :
1. Apa saja jenis-jenis value pada properti position?
208
PERTEMUAN 4
Anchor Link
Contoh
Codes
<a href=”#price”>Price</a>
Codes
<section id=”price”></section>
211
Pertemuan 4- Anchor Link and Main content
Anchor Link
212
Pertemuan 4- Anchor Link and Main content
Continue Website
Melanjutkan Website
1. Pricing Table
Section
Products
Section Pricing
Table
213
Pertemuan 4- Anchor Link and Main content
Continue Website
Codes
<section>
<div class=”container”>
<div class=”tab”>
<div class=”tab-header”>
<div>
<h1 class=”name”>Basic</h1>
</div>
<div>
<h2 class=”price”> >IDR30.000</h2>
</div>
</div>
<hr>
<ul class=”list”>
<li>Bouquet </li>
<li> <del> Decoration </del> </li>
<li> Vase </li>
<li> One flower type </li>
<li> Lily </li>
<li> Rose </li>
<li> Tulip </li>
<li> <del> Sunflower </del></li>
<li> <del> Baby breath </del> </li>
</ul>
</div>
<!-- Copy paste div class=”tab” disini -->
</div>
</section>
214
Pertemuan 4- Anchor Link and Main content
Continue Website
Nah tapi kita akan membuat 3 pricing table. Maka dari itu lakukan
langkah ke-2 berikut ini
Codes
.container {
display: flex;
flex-wrap: wrap;
justify-content: center;
align-items: center;
}
.tab {
background-color: gainsboro;
width: 400px;
padding: 40px;
margin: 20px;
border-radius: 20px;
}
h1.name {
font-size: 30px;
letter-spacing: 2px;
margin-bottom: 20px;
color: black;
}
215
Pertemuan 4- Anchor Link and Main content
Continue Website
Codes
h2.price {
font-size: 38px;
color: black;
}
.list {
list-style-type: disc;
margin-bottom: 50px;
text-align: left;
}
.list li {
margin-top: 20px;
color: black;
}
hr {
height: 7px;
width: 80%;
margin: auto;
background-color: rgb(219, 84, 75);
border: none;
border-radius: 50px;
margin-top: 20px;
}
Kemudian lihat
hasilnya menjadi
seperti ini
216
Pertemuan 4 - Anchor Link and Main content
Continue Website
2. Section About Us
Codes
<section>
<div class=”about”>
<div>
<h2 class=”about”> About Us </h2>
<p class=”about”> Deskripsi e-commerce
mu sendiri </p>
</div>
<div class=”image-about”>
<img src=”assets/imgAbout.jpg”
alt=”About Us” width=”450px”
height=”auto” class=”about-us”>
</div>
</div>
</section>
Carilah sebuah gambar yang cocok untuk ditampilkan di section
About Us ya !
217
Pertemuan 4 - Anchor Link and Main content
Continue Website
Codes
div.about {
display: flex;
justify-content: center;
margin-left: auto;
margin-right: auto;
margin-top: 5px;
margin-bottom: 30px;
background-color: blanchedalmond;
width: 80%;
}
.about {
text-align: left;
color: black;
padding: 10px;
width: 100%;
}
div.image-about {
margin-bottom: auto;
margin-top: auto;
}
img.about-us {
max-width: 100%;
max-height: 100%;
}
218
Pertemuan 4 - Anchor Link and Main content
Continue Website
3. Anchor Link
Codes
<a href=”#about”>About Us</a>
Codes
<section id=”about”>
219
Pertemuan 4 - Anchor Link and Main content
Question
Hari/Tanggal :
1. Apa kegunaan Anchor Link?
220
PERTEMUAN 5
CLICK TO EXPLORE !
5 Click to Explore !
TOP
LEFT
BOTTOM
LEFT RIGHT RIGHT
TOP
BOTTOM
Contoh:
Codes
margin: 8px 5px 10px 3px;
padding: 5px 3px 3px 4px;
223
Pertemuan 5 - Click to Explore !
Margin and Padding Shorthand
1. Shorthand 3 Value
Codes
• Top : 25px
margin: 25px 40px 28px; • Right dan Left : 40px
padding: 25px 40px 28px; • Bottom : 28px
2. Shorthand 2 Value
Codes
• Top dan Bottom : 5px
margin: 5px auto; • Right dan Left: auto
padding: 5px auto;
3. Shorthand 1 Value
Codes
• Top, Right, Bottom,
margin: 5px; Left: 5px
padding: 5px;
224
Pertemuan 5 - Click to Explore !
Review Display Flex and Float
Nah sebelum belajar lebih jauh lagi, yuk kita ingat kembali
penggunaannya dengan Techdemia !
225
Pertemuan 5 - Click to Explore !
Add Button
Codes
<button> Default Button </button>
Codes
button {
background-color:white;
border: 2px solid rgb(219, 84, 75);
color: black;
font-size: 20px;
border-radius: 8px;
padding: 5px 8px;
}
button:hover {
background-color: rgb(219, 84, 75);
color: white;
}
226
Pertemuan 5 - Click to Explore !
Add Button
Pressed Effect
227
Pertemuan 5 - Click to Explore !
Add Button
Codes
button {
background-color:rgb(219, 84, 75, 0.863);
color: white;
font-size: 20px;
border: none;
border-radius: 8px;
padding: 5px 8px;
box-shadow: 0px 7px gainsboro;
cursor: pointer;
}
button:hover {
background-color: rgb(219, 84, 75);
color: white;
opacity: 0.7;
}
button:active {
transform: translateY(4px);
box-shadow: 0px 4px gainsboro;
}
228
Pertemuan 5 - Click to Explore !
Cursor Property
Properti CSS
1. Cursor
Output
2. 2D Transform
229
Pertemuan 5 - Click to Explore !
Transform Property
1. translate(x, y)
Method translate() digunakan untuk memindahkan (move)
elemen berdasarkan sumbu X atau sumbu Y.
Contoh :
Codes
transform: translate(0px 4px);
<!-- atau dipisah -->
transform: translateX(2px);
transform: translateY(5px);
Codes
button {
background-color: rgb(168, 87, 87);
border-radius: 8px;
color: white;
box-shadow: 0px 3px gainsboro;
}
button:hover {
transform: translate(0px, 3px)
}
230
Pertemuan 5 - Click to Explore !
Transform Property
2. rotate()
Method rotate() digunakan untuk memutar elemen dengan
satuan degree.
Contoh :
Codes
transform: rotate(30deg);
transform: rotate(-30deg);
3. scale(width, height)
Method scale() digunakan untuk mengatur ukuran elemen
dengan value width dan height
Contoh :
Codes
transform: scale(2.5, 2.5);
<!-- atau dipisah -->
transform: scaleX(2.5);
transform: scaleY(2.5);
231
Pertemuan 5 - Click to Explore !
Transform Property
4. skew(x, y)
Method skew() digunakan untuk mengatur kemiringan elemen
berdasarkan sumbu x dan sumbu y
Contoh :
Codes
transform: skew(20deg, 30deg);
<!-- atau dipisah -->
transform: skewX(20deg);
transform: skewY(30deg);
5. matrix
Method matrix() adalah shorthand untuk semua kode transform
di atas.
Syntax!
232
Pertemuan 5 - Click to Explore !
Continue Website
Melanjutkan Website
Codes
button {
background-color: rgba(219, 85, 75, 0.616);
border-radius: 8px;
color: white;
padding: 8px;
border: none;
font-size: 20pt;
}
button:hover {
transform: scale(1.2, 1.2)
background-color: rgb(219, 85, 75);
}
233
Pertemuan 5 - Click to Explore !
Questions
Hari/Tanggal :
1. Bagaimana urutan value pada Margin Shorthand?
transform: scale(30deg);
234
PERTEMUAN 6
FONT-AWESOME AND
GRADIENT
1. Menggunakan Font-awesome
2. Menambahkan Gradient
3. Melanjutkan Website
Font-awesome
fontawesome.com adalah
website yang menyediakan icon
untuk kebutuhan design.
Font-awesome bisa dipakai
secara gratis dan mudah
dimodifikasi.
Bagaimana cara menggunakannya?
237
Pertemuan 6 - Font Awesome and Gradient
Font-awesome
Font Awesome 5
2. Import kode script yang berisi Kit Code pada tag <head>.
Codes
<script src=”https://kit.fontawesome.com/
f90068558c.js” crossorigin=”anonymous”></
script>
Kit Code
238
Pertemuan 6 - Font Awesome and Gradient
Font-awesome
6. Tag <i> </i> untuk menunjukkan tag Icon dan atribut class
diisi nama icon.
Contoh :
Codes
<i class=”fab fa-instagram”> </i>
239
Pertemuan 6 - Font Awesome and Gradient
Font-awesome
2. Download Library
240
Pertemuan 6 - Font Awesome and Gradient
Font-awesome
Codes
<link href=”fontawesome5/css/all.css” rel=”-
stylesheet” type=”text/css”></link>
Codes
<p> <i class=”fas fa-bomb”></i> Bomb Icon
</p>
241
Pertemuan 6 - Font Awesome and Gradient
Font-awesome
Gradient
1. Linear Gradient
Syntax!
<!-- vertical -->
background-image: linear-gradient(color1,
color2)
<!-- horizontal -->
background-image: linear-gradient(to right,
color1, color2)
<!-- diagonal -->
background-image: linear-gradient(to bottom
right, color1, color2)
242
Pertemuan 6 - Font Awesome and Gradient
Gradient
Codes
.horizontal {
width: 100px;
background-image: linear-gradient(to right,
rgb(189, 86, 86), rgb(228, 224, 33))
}
Contoh kode HTM
Codes
<div class=”horizontal”>
<h3>Horizontal Linear Gradient</h3>
</div>
Persentase
Kamu juga bisa mengatur persentase salah satu warna.
Caranya adalah dengan menambahkan persentase setelah
nama warna.
Contoh kode CSS
Codes
background-image: linear-gradient(to right,
rgb(189, 86, 86) 60% , rgb(228, 224, 33))
243
Pertemuan 6 - Font Awesome and Gradient
Gradient
Output
2. Radial Gradient
ellipse circle
(default)
Codes
<!-- ellipse -->
background-image: radial-gradient(red, yellow,
green)
244
Pertemuan 6 - Font Awesome and Gradient
Gradient
Melanjutkan Website
Yang akan kita tambahkan kali ini adalah gradien dan icon
media sosial!
Contoh
Codes
footer {
background-image: linear-gradient(rgb(252,
232, 204), rgb(197, 141, 137));
}
245
Pertemuan 6 - Font Awesome and Gradient
Continue Website
Output
2. Menambahkan Icon
Codes
<script src=”https://kit.fontawesome.com/
f90068558c.js” crossorigin=”anonymous”></
script>
246
Pertemuan 6 - Font Awesome and Gradient
Continue Website
Codes
<h3 class=”info-left”><i class=”fas fa-map-
marked-alt”></i><b>Address</b></h3>
Output
Output
247
Pertemuan 6 - Font Awesome and Gradient
Continue Website
Codes
.fa-map-marked-alt, .fa-map-pin, .fa-ad-
dress-book, .fa-phone-alt, .fa-instagram {
margin: 6px;
}
Output
Codes
.fa-map-marked-alt, .fa-map-pin, .fa-ad-
dress-book, .fa-phone-alt, .fa-instagram {
margin: 6px;
color: rgb(219, 85, 75);
}
248
Pertemuan 6 - Font Awesome and Gradient
Continue Website
Output
249
Pertemuan 6 - Font Awesome and Gradient
Questions
Hari/Tanggal :
1. Tag apa yang ditambahkan untuk menambahkan icon?
250
PERTEMUAN 7
HOVER DROPDOWN
7 Hover Dropdown
Dropdown
dropdown
253
Pertemuan 7 - Hover Dropdown
Hover Dropdown
Bagaimana caranya?
Singkatnya, kita memanfaatkan properti display untuk
menyembunyikan dan menampilkan dropdown.
Codes
<nav>
<div class=”dropdown”>
<a href=””>Menu</a>
<div class=”dropdown-content”>
<ul>
<li><a href=””>Submenu1</a></li>
<li><a href=””>Submenu2</a></li>
<li><a href=””>Submenu3</a></li>
/ul>
</div>
</div>
</nav>
254
Pertemuan 7 - Hover Dropdown
Hover Dropdown
Codes
.dropdown-content {
display: none; <!--hide dropdown-->
}
.dropdown:hover .dropdown-content{
display: block; <!--show dropdown-->
}
ul {
list-style-type: none;
}
Output
255
Pertemuan 7 - Hover Dropdown
Hover Dropdown
Codes
.dropdown-content {
display: none;
position: absolute;
}
.dropdown:hover .dropdown-content{
display: flex;
}
ul {
list-style-type: none;
padding: 0;
margin: 0;
}
li {
text-align: left;
padding: 5px;
margin: 2px 0px;
background-color: wheat;
min-width: 160px;
box-shadow: 3px 3px gainsboro;
border-radius: 5px;
}
li:hover {
background-color: white;
cursor: pointer;
}
256
Pertemuan 7 - Hover Dropdown
Hover Dropdown
Codes
li:hover a{
color: gainsboro;
}
a {
text-decoration: none;
color: black;
}
Output
257
Pertemuan 7 - Hover Dropdown
Continue Website
Melanjutkan Website
1. Halaman Price
Codes
<nav>
<a href=”index.html”>Home</a>
<a href=”price.html”>Price</a>
<a href=”about.html”>About Us</a>
</nav>
258
Pertemuan 7 - Hover Dropdown
Continue Website
Codes
<header> </header>
<main> </main>
<footer> </footer>
Output
259
Pertemuan 7 - Hover Dropdown
Continue Website
2. Halaman About Us
Output
3. Menambahkan Dropdown
260
Pertemuan 7 - Hover Dropdown
Continue Website
Codes
<nav>
<div class=”dropdown”>
<div>
<a href=”index.html”>Home</a>
</div>
<div class=”dropdown-content”>
<ul>
<li class=”dropdown-item”>
<a class=”dropdown-item”
href=”#products”>Products</a>
</li>
<li class=”dropdown-item”>
<a class=”dropdown-item”
href=”#pricing-table”>Pricing
Table</a>
</li>
</ul>
</div>
</div>
<a href=”price.html”>Price</a>
<a href=”about.html”>About Us</a>
</nav>
261
Pertemuan 7 - Hover Dropdown
Continue Website
Codes
ul {
list-style-type: none;
padding: 0;
margin: 0;
}
.dropdown {
display: flex;
flex-direction: column;
}
.dropdown-content {
display: none;
}
.dropdown:hover .dropdown-content {
display: block;
position: absolute;
top: 100%;
background-color: antiquewhite;
}
.dropdown-item:hover {
background-color:whitesmoke ;
cursor: pointer;
}
a.dropdown-item {
min-width: 160px;
text-align: left;
}
262
Pertemuan 7 - Hover Dropdown
Continue Website
Codes
li.dropdown-item:hover a.dropdown-item {
text-align: left;
color: gainsboro;
}
Output
263
Pertemuan 7 - Hover Dropdown
Questions
Hari/Tanggal :
1. Apa itu Dropdown? Apa itu Hover Dropdown?
264
PERTEMUAN 8
Gunakan tag <link> untuk import file css pada dokumen html.
Syntax!
<link rel=”stylesheet” type=”text/css”
href=”namafile.css”>
Responsive Website
267
Pertemuan 8 - Review and Middle Test
Review
Header
Main
Footer
Codes
<body>
<header> </header>
<main> </main>
<footer> </footer>
</body>
268
Pertemuan 8 - Review and Middle Test
Review
nav menu
Contoh 2 - Nav di samping (Sidebar)
https://www.amazon.com/
Contoh Kode :
Codes
<nav>
<a href=”#home”> Home </a> |
<a href=”#features”> Features </a> |
<a href=”#about”> About Us </a> |
</nav>
269
Pertemuan 8 - Review and Middle Test
Review
1. Vertical Navbar
2. Horizontal Navbar
Output
Codes
<nav>
<a href=”#home”>Home</a>
<a href=”#price”>Price</a>
<a href=”#about”>About Us</a>
</nav>
270
Pertemuan 8 - Review and Middle Test
Review
1. Static
2. Relative
3. Absolute
271
Pertemuan 8 - Review and Middle Test
Review
4. Fixed
5. Sticky
Biasanya
digunakan
pada
Navigation
272
Pertemuan 8 - Review and Middle Test
Review
Codes
.static {
position: static;
}
.relative {
position: relative;
}
.absolute {
position: absolute;
}
.fixed {
position: fixed;
}
.sticky {
position: sticky;
}
z-index
z-index = 1
z-index = 2
z-index = 3
273
Pertemuan 8 - Review and Middle Test
Review
Jumbotron
Contoh jumbotron
di bawah nav
Contoh jumbotron
di atas nav
Anchor Link
274
Pertemuan 8 - Review and Middle Test
Review
Contoh
Codes
<a href=”#price”>Price</a>
TOP
BOTTOM
Contoh:
Codes
• Top : 8px
margin: 8px 5px 10px 3px; • Right : 5px
padding: 5px 3px 3px 4px; • Bottom : 10px
• Left : 3px
275
Pertemuan 8 - Review and Middle Test
Review
Codes
• Top : 25px
margin: 25px 40px 28px; • Right dan Left : 40px
padding: 25px 40px 28px; • Bottom : 28px
Codes
• Top dan Bottom : 5px
margin: 5px auto; • Right dan Left: auto
padding: 5px auto;
Codes
• Top, Right, Bottom,
margin: 5px; Left: 5px
padding: 5px;
Codes
<button> Default Button </button>
Output
276
Pertemuan 8 - Review and Middle Test
Review
Properti CSS
1. Cursor
Output
2. 2D Transform
1. translate(x, y)
Method translate() digunakan untuk memindahkan (move)
elemen berdasarkan sumbu X atau sumbu Y.
2. rotate()
Method rotate() digunakan untuk memutar elemen dengan
satuan degree.
277
Pertemuan 8 - Review and Middle Test
Review
3. scale(width, height)
Method scale() digunakan untuk mengatur ukuran elemen
dengan value width dan height
4. skew(x, y)
Method skew() digunakan untuk mengatur kemiringan elemen
berdasarkan sumbu x dan sumbu y
5. matrix
Method matrix() adalah shorthand untuk semua kode transform
di atas.
Font-awesome
fontawesome.com adalah
website yang menyediakan icon
untuk kebutuhan design.
Font-awesome bisa dipakai
secara gratis dan mudah
dimodifikasi.
1. Font Awesome 4
Codes
<head>
<link rel=”stylesheet” href=”https://
cdnjs.cloudflare.com/ajax/libs/font-
awesome/4.7.0/css/font-awesome.min.css”>
</head>
278
Pertemuan 8 - Review and Middle Test
Review
2. Font Awesome 5
Import kode script yang berisi Kit Code pada tag <head>.
Contoh :
Codes
<script src=”https://kit.fontawesome.com/
f90068558c.js” crossorigin=”anonymous”></
script>
Kit Code
Gradient
1. Linear Gradient
279
Pertemuan 8 - Review and Middle Test
Review
Codes
<!-- horizontal -->
background-image: linear-gradient(to right,
rgb(189, 86, 86), rgb(228, 224, 33))
<!-- vertical -->
background-image: linear-gradient(rgb(189, 86,
86), rgb(228, 224, 33))
<!-- diagonal -->
background-image: linear-gradient(to right bot-
tom,rgb(189, 86, 86), rgb(228, 224, 33))
2. Radial Gradient
Radial gradient
membentuk gradasi
warna berdasarkan titik
pusat elemen.
ellipse circle
(default)
Codes
<!-- ellipse -->
background-image: radial-gradient(red, yellow,
green)
280
Pertemuan 8 - Review and Middle Test
Review
Dropdown
dropdown
Middle Test
2. Coding
281
Timedoor Coding Academy
282
CREDITS
References
• https://www.w3schools.com/
• https://developer.mozilla.org/en-US/
• https://css-tricks.com/
• https://www.youtube.com/
Images
• https://www.freepik.com/
• https://www.flaticon.com/
• https://www.vecteezy.com/
• https://undraw.co/
• https://unsplash.com/
• https://www.pexels.com/
• https://giphy.com/
Websites Included
• https://www.google.com/maps
• https://www.paypal.com/id/home
• https://www.amazon.com/
• https://www.logitech.com/en-us
• https://www.bk.com/
• https://timedoor.net/
• https://academy.timedoor.net/
• https://techdemia.com/
• https://www.chanel.com/us/
• https://www.toyota.astra.co.id/home
• https://www.uber.com/
• https://replit.com/
• https://bennettfeely.com/clippy/
283
• https://getwaves.io/
• https://www.magicpattern.design/tools/blob-generator
• https://bggenerator.com/index.php
• https://michalsnik.github.io/aos/
• https://formsubmit.co/
• https://www.netlify.com/
• https://fontawesome.com/
• https://fonts.google.com
284