Web Programming - Pertemuan 4
Summary
TLDRThe video script is an educational tutorial focused on web development, specifically diving into CSS (Cascading Style Sheets). It covers various methods of applying CSS to HTML elements, such as internal, inline, and external styles. The instructor explains how to add backgrounds, change text colors, and manipulate table appearances. The script is filled with examples and practical advice, aiming to help viewers understand the versatility and importance of CSS in web design.
Takeaways
- 🌟 The session continues with a lesson on CSS, following up from previous lessons on HTML and JavaScript.
- 🎨 CSS is used for styling web pages, including adding backgrounds, colors, and other visual elements.
- 📚 The speaker mentions the importance of understanding CSS syntax and how it can be applied to various HTML elements.
- 🖌️ There are three main ways to add CSS to a webpage: inline, internal, and external. Each method has its own advantages and use cases.
- 🔍 The internal method involves adding CSS directly within the HTML document, typically in the `<head>` section.
- 🌐 External CSS is linked to an HTML document and is typically stored in a separate `.css` file, making it easier to manage styles for multiple pages.
- 📝 Inline CSS is applied directly to HTML elements using the `style` attribute, which can be useful for quick styling but is less efficient for larger projects.
- 💡 The speaker discusses the use of CSS to change the background color of elements, such as making the entire body or specific tables blue.
- 🔄 The script also touches on the concept of CSS specificity, explaining how different CSS rules can affect the same element in different ways.
- 📈 The speaker emphasizes the importance of learning CSS for web development, suggesting that it is a crucial skill for creating visually appealing and responsive websites.
- 🚀 The session concludes with a reminder to practice and experiment with CSS to gain a deeper understanding of its capabilities and potential.
Q & A
What topic is being discussed in this script?
-The script is discussing CSS (Cascading Style Sheets) and how to use it to style HTML elements.
What is the purpose of CSS according to the script?
-CSS is used to add styles to HTML elements, allowing for variations in appearance such as colors, fonts, and layouts, making the content more visually appealing.
What was the topic of the previous lesson?
-The previous lesson covered how to create labels and forms in HTML.
What are the three ways to add CSS mentioned in the script?
-The three ways to add CSS mentioned are internal, inline, and external.
How do you add an internal CSS according to the script?
-To add internal CSS, you place the CSS code inside a <style> tag within the <head> section of the HTML document.
How do you add inline CSS?
-Inline CSS is added directly within an HTML element's style attribute.
How do you add external CSS?
-External CSS is added by linking an external CSS file to the HTML document using a <link> tag within the <head> section.
What happens when you add CSS to the body tag?
-When CSS is added to the body tag, all elements within the body will inherit those styles, such as a background color change.
What is an example of a CSS property and value given in the script?
-An example given is 'background-color: blue;', which sets the background color of an element to blue.
What are the benefits of using external CSS according to the script?
-External CSS is beneficial for larger websites with multiple pages because it allows for centralized styling. This means changes can be made in one CSS file and affect all linked HTML pages, making maintenance easier.
What analogy does the script use to explain the concept of inline CSS?
-The script likens inline CSS to inserting CSS directly within an HTML element, similar to how one would provide specific instructions or attributes directly within a tag.
How does the script suggest testing CSS changes?
-The script suggests making changes to the CSS code and then refreshing the browser to see the updated styles applied to the HTML elements.
Outlines
😀 Introduction to CSS and Label Creation
The script begins with a casual introduction to continuing the educational material, likely from a previous session. The focus shifts to CSS (Cascading Style Sheets), which is used for styling web pages. The speaker mentions the transition from learning about labels and bank forms to CSS. They discuss the potential to vary methods and reset HTML, hinting at the flexibility CSS offers. The speaker also humorously references a table from Aceh that disappoints and suggests using CSS for background color changes, indicating a practical application of CSS in web design.
😎 Understanding CSS Application in HTML
This paragraph delves deeper into the application of CSS within HTML documents. The speaker explains how CSS can be applied to elements like the body and table, affecting their appearance. They discuss the concept of internal CSS, where styles are defined within the HTML document itself, and how it affects the entire page, including tables. The speaker also touches on the specificity of CSS rules and how they can be applied to different elements, such as changing the background color and text color. The paragraph emphasizes the importance of understanding where CSS is applied within the HTML structure to achieve the desired styling effects.
🤔 Exploring Internal and Inline CSS Techniques
The speaker continues to explore CSS by discussing internal and inline techniques. They explain how internal CSS is added within the head section of an HTML document, allowing for the inclusion of styles that affect the entire page. The paragraph also covers inline CSS, where styles are applied directly to HTML elements, affecting only those specific elements. The speaker provides examples of how to modify the background color and text color using these methods. Additionally, they mention the use of external CSS files, which are linked to the HTML document, and the importance of maintaining a consistent folder structure for these files.
🔍 External CSS and Linking to HTML
In the final paragraph, the focus is on external CSS, where styles are defined in a separate file and linked to the HTML document. The speaker explains the process of linking an external CSS file to an HTML document, emphasizing the need for the CSS file to be in the same folder as the HTML file or properly referenced. They discuss the benefits of using external CSS, such as maintaining a clean HTML structure and easily updating styles across multiple pages. The paragraph concludes with a reminder of the importance of correctly linking CSS files to ensure that styles are applied as intended.
Mindmap
Keywords
💡CSS
💡HTML
💡Background
💡Internal
💡External
💡Inline
💡Table
💡Font Color
💡File
💡Tag
💡Body
Highlights
Introduction to continuing the learning material on CSS.
Explanation of how to create labels and forms from the bank.
Discussion on the use of CSS for webpage styling.
Mention of the ability to open previous files for reference.
Explanation of CSS properties like 'background' and 'background-color'.
Demonstration of how to apply CSS to the body element to change the background color.
Differentiating between applying CSS to the entire body versus specific elements like tables.
Introduction of three methods to add CSS: internal, inline, and external.
Description of how to use internal CSS by adding it within the 'head' section of HTML.
Explanation of inline CSS and its application directly within HTML elements.
Discussion on the advantages of using internal CSS for specific pages or sections.
How to modify table styles using CSS selectors.
Mention of external CSS files and their benefits for larger websites with multiple pages.
Instructions on linking external CSS files to HTML documents.
Explanation of the importance of file organization when using external CSS.
Discussion on the practical applications of CSS in enhancing website aesthetics.
Final thoughts on choosing the right method for applying CSS based on project needs.
Transcripts
Hai
kismat
Indonesia hari ini kita lanjut materi
berikutnya yaitu menimpa
[Musik]
ssj5 Minggu kemarin kalian berjajar
eh cara bikin label cara bikin from bank
hari ini kita udah masuk ke CSS
script lanjut Yesus sendiri mungkin
kalau udah tahu ya singkatannya Apa
singkatan dari sesi nipis Gading stase
Gimana CSS ini memang digunakan
[Musik]
auntuk
kakaknya apa ya memvariasikan metode
riset html nih jadi
dengan CSS ini hak yang ada Jadi nggak
nonton Hitam Putih aja gitu ya karena
kalian boleh buka file yang kemarin kita
bikin ribet lu
ngebalikin sendok
ada
bukan cuma besok
jangan
lupa yang table Aceh ngecewain
nah Biar bajak FB susu
sub
Eun as
the mixed
integer
ini
lebih saya bikin lagi terbang tapi kalau
kalian Eh pakai label yang kemarin itu
kinerja bantu
Photoshop
adik
dicukur banget
bugil
tapi
kalau kalian mau bikin juga boleh kalau
mau bikin Pengennya yang terbaru gitu
maksudnya satu aja seseorang bisa pusing
jadinya aku
cuma tersenyum Indonesia
kepo
Depok maksudnya kok bingung Jokowi
sedekah
betul sedikitpun terparkir
memikat misalnya minggu
nggak ada temennya di mana coba ini kita
hanya gue pakai CSS ya berarti Eh pakai
jas Facebook html ya di mana Sekarang
kita akan tambahkan untuk CSS nya ini
bisa kita pakai untuk
kasarnya apa yang mewarnai dari
Sigma sendiri oke di sini
[Musik]
anggap bisa kita mau menambahkan
background pada cabang kefir itu disini
itu kalau bisa kalian lihat ini ada
beberapa teknik email yang pertama
getbody gimana bocimi terkini semua
semua ini adalah body dan juga ada
teke teke dgdt hubungannya
tema-tema tersebut bisa kita tambahkan
CSS supaya lebih bervariasi untuk
menambahkan CSS itu ada tiga cabe lokal
Enno ada tiga cara yang pertama kita
bisa tambahkan CSS nya dengan cara
internal atau di inspect di hakekatnya
Gimana sih cara internal misal Saya mau
ngasih background untuk semua bodynya
ini
detik saya masukkan di sini gigi teh
body kata-katanya adalah sekarang
miskin syarat pertama gitu hingga
codingnya untuk kursi dari penambahan
background di CSS adalah background atau
background-color
misalnya saya kasih di sini blue
akan apa yang kita Iya nanti semuanya
disini akan berubah baik Roni menjadi
biru semua yang ada di body
label nih Kenapa karena table itu
termasuk ke dalam bodi ngetik ya jadi
tablenya pun akan berubah menjadi biru
karena yang paling kita kasih CSS adalah
dipenuhi beda hal lagi kalau kita
memasukkan
sisternya ini ketik bodinya
Eh ketemu diketik table di sini
ya situ di dalam lebih ya bukan di luar
kayak gini Kau di luar Nanti dia
masuknya tulisannya kita kasih bikin
kalian Blue eh
yang B kronik biru hanya table sedangkan
bodynya itu dia enggak di background
biru Kenapa karena kita hanya masukkan
CSS nya ke background gitu oke
pisahkan lagi ini ada teh akademia.edu
misalnya teh hanya yang halaman utama
ini yang ini baru pertama ini seri mau
dikasih sama kalian font color nya
adalah putih ini kami sudah bayar
tagihan misalnya karena bisa terus bikin
hal yang pertama hentai cssd yang
menandakan bahwa kita akan menuliskan
CSS
kalau white Adya baris pertama ia akan
keluar kalornya menjadi putih sedangkan
yang bawahnya itu cara pertama cc kalau
misalnya ada selain background blue
misalnya modifikasi apa ya misal
euy kita ubah Desi kalornya di semua
tablenya
ini kita harus dulu berarti kan ada dua
pengaturan yang pertama bikecalc glue
kita bisanya pakai er titik koma ya
kalau gini-gini yang pertama
pengaturannya itu pegang kalau glue yang
kedua ini color white kita tes Tuh jadi
semua kejunya berwarna
biru untuk background nya sedangkan
vokalnya banget masjid secara pertama
yaitu ke tadi internet
secured
GTA
Nah sekarang kita langsung
eh apa
Lanjut ke cara kedua yaitu yang tadi
Kirain teh internal Sorry Yang tadi
Tekan internal mamanya Inline
bisa jadi
nilai
sst diem spek
yakin lain
ngajarnya kedua adalah internal di mana
Kalau secara kenal manga kita buka teks
CSS nya ekstra di dalam head yang lebar
saya udah infoin atas fungsi tebis
berfungsi tag heading itu untuk
menambahkan
fungsi-fungsi atau file-file yang memang
bukan konten dari websitenya anak dan
kita akui masukkan CSS maka kita buka
tekstilnya di
itg di dalam teh Intan pencipta iptek
ilmu penutupnya interface lagi makan di
sini
nanti ada teh pembuka dan tag penutup
nya ini punya boleh ada boleh Mbak
Misalnya mau kalian hapus Sudah jenis
ini menandakan bahwa yang ada di dalam
teknik berarti dia termasuk adalah
bahasa CSS seperti kalau kita masukkan
di sini H1 Indonesia Pilih satu
Nadia Enggak kan mau ya ya kan mau
kebaca Hai karena dia di dalam teks
style beda lagi kalau singa satunya kita
Simpannya di luar kalau di lututnya ppmt
dia mau dalam tekstil Gina mau kamu
bacanya ini adalah UFO Dinkes edangkan
K1 ini adalah bahasa ATM itu
Serang untuk cara yang Inline tadi inlet
internal tadi yang pertama ilmuan ya
Yang ini ya yang hilangnya bikin spek.mi
di dalam teksnya
Eh sekarang kita pakai cara
internesia yang mau kita kasih akhirnya
table Google kreasi ini yang cara ini
lainnya kita harus dulu ya dari keras
lebih
balikin lagi Coba dah nggak ada lagi CSS
ya cara itu tahun kita kalau secara
internal Kita su Panggil dulu tag yang
mau kita accesses itu apa karena table
ini adalah kek bawa I make kita cukup
Tuliskan lagi nih Apple
Aduh untuk Seven CSS nyata kalau yang
tadi in lainnya di dalam sini ya tidak
link-nya kalau ini secara internal kita
pakai untuk
dan tutup sebagai batas dari pengaturan
Stable Siapa tahu dibawah ini kita masuk
er misalnya atau mengatur TB atau
mengatur body begitu ya jadi kita
batasnya dengan kurung kurawal buka
nah
nih kita langsung tulis aja balesnya
tadinya nggak maksudnya gitu
kita masuki bicron kangen pisang iklim
ini kita rifles
langsung Warna hijau ya sampai lagi tadi
color white ya kalau Hai pintar aja ke
bawah anget nggak
boleh aja kalian dipijit juga memasang
rasain tadi kini langit ini pakai nanti
cucunya bacanya jadi gini sih kalau
menjadi putih semua ya
kelebihannya enaknya kalau dipakai
internal Bisa Ini kan tadi Celine
memasukin teknik bisanya hanya teh hanya
mau pakai CSS pakaiin LINE terus
bitronium mau kita ganti jadi warna dan
jenis jadinya Iya nanti kita yang kolom
satu aja yang akan jadi fade yang
bikinnya tutup PH lainnya kata itu
tempat ya
61234 ini 44 itu Tapi ketika secara
Inline mengatur disini aja ya ditengah
jalan bertemu calon nyapres maka cuman
sih kolom pertama aja telurnya Reza
pisang secara internal kalian ngaturnya
kayak gini
orang secara internal di sini kita
kalian tinggalkan cerpen harmonis ini
Beginilah kalau ada berapa teh hadits
ini akan ikut pengaturannya dengan PH
yang ada di Sunset
gitu Jadi kalau inland itu 11 harus
kalian masukkin tapi kalau internal
enggak langsung satu kali aja kalian
udah bisa
eh apa udah bisa mewarnai insource hal
yang ada di tombolnya Kalau kayak gimana
Bu itu lagi senyum
ini batasnya jadi
di akhir diawali dengan punggawa
akhirnya dengan
background download-nya misalnya J.Lo
edittt2
bingung tempat
itu pencucian atau warna ungu hitam
awalnya masih ada tuh ijo-ijonya Teteh
Masih kebawa developmental screening
test secara hingga menjadi yang tadi
inline skate Disini di dalam tag ya
secara internal kita bikin trik CSS
style disini lalu kita sebutkan
teknik lalu kita
ya
Aditnya
hapus cara ketiga ada eksternal
secara eksternal adalah dengan kita
membuat palbamg
Buatlah baru Mekar misalnya
pengaturan bcss apa aja ya namanya tapi
fortnite.com
ini
ini
ini ini ini
Mbah sifatnya Harus satu folder dengan
html atau dikit lagi bikin yang kayak
begini kan ini yang html basic enak ini
kita bikin satu folder juga Biar Dusun
olehnya seorang
telepon
Nanik mah kita pengatur table Ini kata
dia formatnya udah CS jadi kayak
gini lagi
nggak usah
panah dicat kalau yang tadi kenapa harus
pakai text style karena dia format
upahnya
Jadi kalau sudah
sampai nih
kayak
begini nih durian
ini teh Bu Kok belum bisa sih aneh buah
hal yang berbeda ya dua file yang
berbeda satu penuturan css-1h channel
basic.net walaupun mereka subfolder kita
harus hubungkan mereka menghubunginya
pun
negeri ini ketika kalian tes luar relnya
Starship itunya
ini sama kayak gambar ya ia harus
ngambil lokasi dari CSS nya tadi ini
pengaturan.com dan dia satu folder
dengan html backup disini kalian
tuh
decu ya karena dia 10 detik ini cara
pemanggilan file-nya sama seperti waktu
saya ajarin gambar lebih kalian
perhatikan
gelombang tambahin lagi ngatur thn
tinggal masukin disini
hanya
Kalau dia mau May aku cuma nyampein aja
Yang kayaknya white
wow kayak gitu lho yang tadi nggak nggak
wae itu langsung nyambungnya isinya yang
manapun yang paling sering dipakai kalau
untuk istirahat untuk website yang sudah
banyak halamannya pengaturannya teksnya
banyak itunya pakai cara yang ketiga ya
eksternal kenapa kalau kalian pakaian
Inline cobain bet11 dong harus dimasukin
disini style style style style
dan capek juga bisa waktu kau cara yang
inlay lain-lain maka keceriaan internal
bank sama kalian bisa satu halaman ini
kematoran CSS nya ada 1000 Line berarti
dari lain 9 pakai lain 1900s tersenyum
pusingnya jadi kita di sini beda
file-nya
Yesus semuanya disini disini
akhir musim nanti baca pagi dan rambut
jadi pada MW untuk lintang kita fungsi
Kenapa kita harus bikin Pantura pintu
air kalau ada yang baru itu lebih tinggi
terlihat identitas kemana ya piye
cara-cara pemanggilannya
asoy Cara pakainya
Line yang kedua tadi disini internal
yang tersedia disini namun ada
5.0 / 5 (0 votes)