SESSION 4 : CSS
1
Definisi
Contoh :
body (color: red)
p {font-family: tahoma}
h1 {font-weight: bold}
Note :
• Nilai untuk property tidak boleh dalam tanda petik.
contoh : color : “green”;
• Nama property bersifat case sensitive.
color : green;
property : color
value : green
Menulis CSS
Contoh :
h1 (font-size: 20px; text-align: left; color: blue; font-family: Arial;)
Contact.html
tampilan.css Login.php
Menu.html
Cetak.php
Simpan dgn nama
gayaku.css
Inline CSS
Latihan