Web Programming - Pertemuan 4

Innajiyaharifin
3 Apr 202217:32

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

00:00

😀 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.

05:00

😎 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.

10:02

🤔 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.

15:04

🔍 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

CSS stands for Cascading Style Sheets, which is a language used for describing the presentation of a document written in HTML or XML. In the video, CSS is discussed as a tool for styling web pages, such as changing the background color and font styles. The script mentions adding CSS to HTML documents to enhance their visual appeal, which is a core concept in web development.

💡HTML

HTML, or Hypertext Markup Language, is the standard markup language for creating web pages and web applications. It is used to structure content on the web. In the script, HTML is mentioned in the context of web development, where CSS is used to style HTML elements, indicating the interplay between these two foundational web technologies.

💡Background

In the context of web design, 'background' refers to the visual appearance behind the text and other content on a webpage. The script discusses how to use CSS to change the background color of a webpage, which is an essential aspect of creating a visually appealing and user-friendly site.

💡Internal

In web development, 'internal' often refers to styles or scripts that are included directly within the HTML document itself. The script mentions 'internal' in the context of adding CSS styles directly within the HTML document, which is one method of applying styles to a webpage.

💡External

External in web development typically means styles or scripts that are linked to an HTML document from an external file. The script discusses 'external' CSS, which involves linking a separate CSS file to an HTML document. This method is often used for larger projects where styles need to be applied consistently across multiple pages.

💡Inline

Inline styles in web development refer to CSS rules that are applied directly within an HTML element using the 'style' attribute. The script mentions 'inline' as a method of applying CSS, which allows for specific styles to be applied to individual elements without affecting the rest of the page.

💡Table

In the context of the script, 'table' likely refers to an HTML table, which is used to display tabular data on a webpage. The script discusses how CSS can be used to style tables, such as changing their background color, which is an example of how CSS can be used to enhance the presentation of data.

💡Font Color

Font color in web design is the color of the text on a webpage. The script mentions changing the font color using CSS, which is an important aspect of web design as it can affect readability and the overall aesthetic of the page.

💡File

In the script, 'file' is mentioned in the context of web development, specifically in relation to CSS and HTML files. Files are the basic units of storage in computing, and in web development, they contain the code that makes up a website. The script discusses the organization and linking of these files to ensure that styles are applied correctly.

💡Tag

In HTML, a tag is an element used to define a specific part of the content. The script mentions 'tag' in the context of CSS, where tags are used to select HTML elements that the CSS styles will be applied to. This is fundamental in CSS as it allows developers to target specific parts of a webpage for styling.

💡Body

In HTML, the 'body' tag is used to contain all the contents of an HTML document, such as text, images, and tables. The script discusses styling the 'body' of a webpage using CSS, which is a common practice to set the overall look and feel of a site, such as the background color and font styles.

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

play00:00

Hai

play00:01

kismat

play00:03

Indonesia hari ini kita lanjut materi

play00:06

berikutnya yaitu menimpa

play00:09

[Musik]

play00:12

ssj5 Minggu kemarin kalian berjajar

play00:15

eh cara bikin label cara bikin from bank

play00:20

hari ini kita udah masuk ke CSS

play00:24

script lanjut Yesus sendiri mungkin

play00:28

kalau udah tahu ya singkatannya Apa

play00:29

singkatan dari sesi nipis Gading stase

play00:32

Gimana CSS ini memang digunakan

play00:34

[Musik]

play00:36

auntuk

play00:39

kakaknya apa ya memvariasikan metode

play00:42

riset html nih jadi

play00:44

dengan CSS ini hak yang ada Jadi nggak

play00:47

nonton Hitam Putih aja gitu ya karena

play00:50

kalian boleh buka file yang kemarin kita

play00:53

bikin ribet lu

play01:00

ngebalikin sendok

play01:05

ada

play01:07

bukan cuma besok

play01:10

jangan

play01:12

lupa yang table Aceh ngecewain

play01:15

nah Biar bajak FB susu

play01:20

sub

play01:27

Eun as

play01:31

the mixed

play01:39

integer

play01:47

ini

play01:53

lebih saya bikin lagi terbang tapi kalau

play01:57

kalian Eh pakai label yang kemarin itu

play02:00

kinerja bantu

play02:04

Photoshop

play02:11

adik

play02:14

dicukur banget

play02:16

bugil

play02:20

tapi

play02:23

kalau kalian mau bikin juga boleh kalau

play02:27

mau bikin Pengennya yang terbaru gitu

play02:35

maksudnya satu aja seseorang bisa pusing

play02:41

jadinya aku

play02:56

cuma tersenyum Indonesia

play03:00

kepo

play03:01

Depok maksudnya kok bingung Jokowi

play03:05

sedekah

play03:10

betul sedikitpun terparkir

play03:15

memikat misalnya minggu

play03:19

nggak ada temennya di mana coba ini kita

play03:21

hanya gue pakai CSS ya berarti Eh pakai

play03:24

jas Facebook html ya di mana Sekarang

play03:26

kita akan tambahkan untuk CSS nya ini

play03:29

bisa kita pakai untuk

play03:31

kasarnya apa yang mewarnai dari

play03:34

Sigma sendiri oke di sini

play03:40

[Musik]

play03:41

anggap bisa kita mau menambahkan

play03:44

background pada cabang kefir itu disini

play03:48

itu kalau bisa kalian lihat ini ada

play03:50

beberapa teknik email yang pertama

play03:51

getbody gimana bocimi terkini semua

play03:53

semua ini adalah body dan juga ada

play03:58

teke teke dgdt hubungannya

play04:03

tema-tema tersebut bisa kita tambahkan

play04:05

CSS supaya lebih bervariasi untuk

play04:08

menambahkan CSS itu ada tiga cabe lokal

play04:12

Enno ada tiga cara yang pertama kita

play04:16

bisa tambahkan CSS nya dengan cara

play04:19

internal atau di inspect di hakekatnya

play04:22

Gimana sih cara internal misal Saya mau

play04:25

ngasih background untuk semua bodynya

play04:27

ini

play04:28

detik saya masukkan di sini gigi teh

play04:31

body kata-katanya adalah sekarang

play04:34

miskin syarat pertama gitu hingga

play04:39

codingnya untuk kursi dari penambahan

play04:42

background di CSS adalah background atau

play04:45

background-color

play04:46

misalnya saya kasih di sini blue

play04:50

akan apa yang kita Iya nanti semuanya

play04:53

disini akan berubah baik Roni menjadi

play04:56

biru semua yang ada di body

play05:00

label nih Kenapa karena table itu

play05:02

termasuk ke dalam bodi ngetik ya jadi

play05:05

tablenya pun akan berubah menjadi biru

play05:08

karena yang paling kita kasih CSS adalah

play05:10

dipenuhi beda hal lagi kalau kita

play05:13

memasukkan

play05:14

sisternya ini ketik bodinya

play05:18

Eh ketemu diketik table di sini

play05:22

ya situ di dalam lebih ya bukan di luar

play05:26

kayak gini Kau di luar Nanti dia

play05:28

masuknya tulisannya kita kasih bikin

play05:30

kalian Blue eh

play05:34

yang B kronik biru hanya table sedangkan

play05:37

bodynya itu dia enggak di background

play05:39

biru Kenapa karena kita hanya masukkan

play05:42

CSS nya ke background gitu oke

play05:47

pisahkan lagi ini ada teh akademia.edu

play05:51

misalnya teh hanya yang halaman utama

play05:53

ini yang ini baru pertama ini seri mau

play05:56

dikasih sama kalian font color nya

play05:58

adalah putih ini kami sudah bayar

play06:01

tagihan misalnya karena bisa terus bikin

play06:05

hal yang pertama hentai cssd yang

play06:07

menandakan bahwa kita akan menuliskan

play06:09

CSS

play06:10

kalau white Adya baris pertama ia akan

play06:17

keluar kalornya menjadi putih sedangkan

play06:20

yang bawahnya itu cara pertama cc kalau

play06:24

misalnya ada selain background blue

play06:26

misalnya modifikasi apa ya misal

play06:30

euy kita ubah Desi kalornya di semua

play06:33

tablenya

play06:35

ini kita harus dulu berarti kan ada dua

play06:38

pengaturan yang pertama bikecalc glue

play06:40

kita bisanya pakai er titik koma ya

play06:45

kalau gini-gini yang pertama

play06:48

pengaturannya itu pegang kalau glue yang

play06:51

kedua ini color white kita tes Tuh jadi

play06:56

semua kejunya berwarna

play07:00

biru untuk background nya sedangkan

play07:02

vokalnya banget masjid secara pertama

play07:05

yaitu ke tadi internet

play07:21

secured

play07:23

GTA

play07:29

Nah sekarang kita langsung

play07:33

eh apa

play07:35

Lanjut ke cara kedua yaitu yang tadi

play07:39

Kirain teh internal Sorry Yang tadi

play07:41

Tekan internal mamanya Inline

play07:43

bisa jadi

play07:46

nilai

play07:49

sst diem spek

play07:52

yakin lain

play07:55

ngajarnya kedua adalah internal di mana

play07:58

Kalau secara kenal manga kita buka teks

play08:01

CSS nya ekstra di dalam head yang lebar

play08:05

saya udah infoin atas fungsi tebis

play08:07

berfungsi tag heading itu untuk

play08:10

menambahkan

play08:12

fungsi-fungsi atau file-file yang memang

play08:15

bukan konten dari websitenya anak dan

play08:18

kita akui masukkan CSS maka kita buka

play08:22

tekstilnya di

play08:24

itg di dalam teh Intan pencipta iptek

play08:28

ilmu penutupnya interface lagi makan di

play08:31

sini

play08:35

nanti ada teh pembuka dan tag penutup

play08:38

nya ini punya boleh ada boleh Mbak

play08:41

Misalnya mau kalian hapus Sudah jenis

play08:44

ini menandakan bahwa yang ada di dalam

play08:47

teknik berarti dia termasuk adalah

play08:49

bahasa CSS seperti kalau kita masukkan

play08:51

di sini H1 Indonesia Pilih satu

play08:56

Nadia Enggak kan mau ya ya kan mau

play08:59

kebaca Hai karena dia di dalam teks

play09:01

style beda lagi kalau singa satunya kita

play09:04

Simpannya di luar kalau di lututnya ppmt

play09:08

dia mau dalam tekstil Gina mau kamu

play09:10

bacanya ini adalah UFO Dinkes edangkan

play09:14

K1 ini adalah bahasa ATM itu

play09:19

Serang untuk cara yang Inline tadi inlet

play09:23

internal tadi yang pertama ilmuan ya

play09:25

Yang ini ya yang hilangnya bikin spek.mi

play09:27

di dalam teksnya

play09:29

Eh sekarang kita pakai cara

play09:34

internesia yang mau kita kasih akhirnya

play09:38

table Google kreasi ini yang cara ini

play09:40

lainnya kita harus dulu ya dari keras

play09:43

lebih

play09:46

balikin lagi Coba dah nggak ada lagi CSS

play09:49

ya cara itu tahun kita kalau secara

play09:52

internal Kita su Panggil dulu tag yang

play09:55

mau kita accesses itu apa karena table

play09:58

ini adalah kek bawa I make kita cukup

play10:02

Tuliskan lagi nih Apple

play10:04

Aduh untuk Seven CSS nyata kalau yang

play10:07

tadi in lainnya di dalam sini ya tidak

play10:09

link-nya kalau ini secara internal kita

play10:12

pakai untuk

play10:14

dan tutup sebagai batas dari pengaturan

play10:20

Stable Siapa tahu dibawah ini kita masuk

play10:22

er misalnya atau mengatur TB atau

play10:26

mengatur body begitu ya jadi kita

play10:29

batasnya dengan kurung kurawal buka

play10:34

nah

play10:36

nih kita langsung tulis aja balesnya

play10:39

tadinya nggak maksudnya gitu

play10:41

kita masuki bicron kangen pisang iklim

play10:48

ini kita rifles

play10:53

langsung Warna hijau ya sampai lagi tadi

play10:57

color white ya kalau Hai pintar aja ke

play11:01

bawah anget nggak

play11:05

boleh aja kalian dipijit juga memasang

play11:08

rasain tadi kini langit ini pakai nanti

play11:11

cucunya bacanya jadi gini sih kalau

play11:17

menjadi putih semua ya

play11:20

kelebihannya enaknya kalau dipakai

play11:22

internal Bisa Ini kan tadi Celine

play11:27

memasukin teknik bisanya hanya teh hanya

play11:30

mau pakai CSS pakaiin LINE terus

play11:33

bitronium mau kita ganti jadi warna dan

play11:37

jenis jadinya Iya nanti kita yang kolom

play11:41

satu aja yang akan jadi fade yang

play11:43

bikinnya tutup PH lainnya kata itu

play11:46

tempat ya

play11:47

61234 ini 44 itu Tapi ketika secara

play11:51

Inline mengatur disini aja ya ditengah

play11:54

jalan bertemu calon nyapres maka cuman

play11:57

sih kolom pertama aja telurnya Reza

play12:01

pisang secara internal kalian ngaturnya

play12:05

kayak gini

play12:09

orang secara internal di sini kita

play12:12

kalian tinggalkan cerpen harmonis ini

play12:15

Beginilah kalau ada berapa teh hadits

play12:18

ini akan ikut pengaturannya dengan PH

play12:21

yang ada di Sunset

play12:23

gitu Jadi kalau inland itu 11 harus

play12:28

kalian masukkin tapi kalau internal

play12:30

enggak langsung satu kali aja kalian

play12:32

udah bisa

play12:33

eh apa udah bisa mewarnai insource hal

play12:38

yang ada di tombolnya Kalau kayak gimana

play12:40

Bu itu lagi senyum

play12:43

ini batasnya jadi

play12:46

di akhir diawali dengan punggawa

play12:48

akhirnya dengan

play12:51

background download-nya misalnya J.Lo

play12:55

edittt2

play13:00

bingung tempat

play13:03

itu pencucian atau warna ungu hitam

play13:08

awalnya masih ada tuh ijo-ijonya Teteh

play13:10

Masih kebawa developmental screening

play13:11

test secara hingga menjadi yang tadi

play13:14

inline skate Disini di dalam tag ya

play13:17

secara internal kita bikin trik CSS

play13:20

style disini lalu kita sebutkan

play13:22

teknik lalu kita

play13:27

ya

play13:29

Aditnya

play13:31

hapus cara ketiga ada eksternal

play13:36

secara eksternal adalah dengan kita

play13:39

membuat palbamg

play13:41

Buatlah baru Mekar misalnya

play13:44

pengaturan bcss apa aja ya namanya tapi

play13:48

fortnite.com

play13:50

ini

play13:52

ini

play13:54

ini ini ini

play14:00

Mbah sifatnya Harus satu folder dengan

play14:02

html atau dikit lagi bikin yang kayak

play14:05

begini kan ini yang html basic enak ini

play14:07

kita bikin satu folder juga Biar Dusun

play14:10

olehnya seorang

play14:13

telepon

play14:15

Nanik mah kita pengatur table Ini kata

play14:18

dia formatnya udah CS jadi kayak

play14:23

gini lagi

play14:25

nggak usah

play14:27

panah dicat kalau yang tadi kenapa harus

play14:31

pakai text style karena dia format

play14:33

upahnya

play14:36

Jadi kalau sudah

play14:43

sampai nih

play14:47

kayak

play14:50

begini nih durian

play14:56

ini teh Bu Kok belum bisa sih aneh buah

play15:00

hal yang berbeda ya dua file yang

play15:01

berbeda satu penuturan css-1h channel

play15:04

basic.net walaupun mereka subfolder kita

play15:07

harus hubungkan mereka menghubunginya

play15:09

pun

play15:13

negeri ini ketika kalian tes luar relnya

play15:17

Starship itunya

play15:19

ini sama kayak gambar ya ia harus

play15:23

ngambil lokasi dari CSS nya tadi ini

play15:27

pengaturan.com dan dia satu folder

play15:29

dengan html backup disini kalian

play15:33

tuh

play15:39

decu ya karena dia 10 detik ini cara

play15:43

pemanggilan file-nya sama seperti waktu

play15:46

saya ajarin gambar lebih kalian

play15:48

perhatikan

play15:50

gelombang tambahin lagi ngatur thn

play15:53

tinggal masukin disini

play15:56

hanya

play15:58

Kalau dia mau May aku cuma nyampein aja

play16:02

Yang kayaknya white

play16:05

wow kayak gitu lho yang tadi nggak nggak

play16:09

wae itu langsung nyambungnya isinya yang

play16:13

manapun yang paling sering dipakai kalau

play16:15

untuk istirahat untuk website yang sudah

play16:18

banyak halamannya pengaturannya teksnya

play16:20

banyak itunya pakai cara yang ketiga ya

play16:24

eksternal kenapa kalau kalian pakaian

play16:27

Inline cobain bet11 dong harus dimasukin

play16:30

disini style style style style

play16:33

dan capek juga bisa waktu kau cara yang

play16:37

inlay lain-lain maka keceriaan internal

play16:40

bank sama kalian bisa satu halaman ini

play16:42

kematoran CSS nya ada 1000 Line berarti

play16:46

dari lain 9 pakai lain 1900s tersenyum

play16:49

pusingnya jadi kita di sini beda

play16:53

file-nya

play16:55

Yesus semuanya disini disini

play17:00

akhir musim nanti baca pagi dan rambut

play17:03

jadi pada MW untuk lintang kita fungsi

play17:06

Kenapa kita harus bikin Pantura pintu

play17:09

air kalau ada yang baru itu lebih tinggi

play17:11

terlihat identitas kemana ya piye

play17:15

cara-cara pemanggilannya

play17:19

asoy Cara pakainya

play17:21

Line yang kedua tadi disini internal

play17:25

yang tersedia disini namun ada

Rate This

5.0 / 5 (0 votes)

関連タグ
CSS TutorialsWeb DesignIndonesianDynamic StylingInternal CSSExternal CSSInline StylesWeb DevelopmentCoding TipsEducational Content
英語で要約が必要ですか?