Dasar-dasar php,pengertian php,belajar php,php script,tutorial php,download php,php mysql,forum php,pemograman php

Thursday, November 3, 2011

Sintak Dasar CSS Font Color

properti color digunakan untuk menentukan warna font. Sebenarnya properti color bukan lah bagian dari properti font.
Cara penulisan:

property -> color
value ->
nama warna – contoh: red, black, white
hexadesimal – contoh: #ff0000
RGB – contoh: rgb(0, 220, 98)
Contoh penulisan:
h1 {
font-size: 14px;
color: red;
}
h2 {
font-size: 14px;
color: #0000ff;
}
Hasil:

Ini adalah Heading 1 (H1) menggunakan warna merah

Ini adalah Heading 2 (H2) menggunakan warna biru

Sintak Dasar CSS Font Color Rating: 4.5 Diposkan Oleh: Yudhie Anugrah

0 komentar:

Post a Comment