Membuat CSS dasar

1. Buka dokumen baru

2. Penulisan  Code CSS pada bagaian setelah tag <title></title> sebelum tag </head>

3. Tuliskan script berikut <style type=”text/css”>

4. Pembuatan variable, ambil contoh variable tes

5. Tulis script .tes{color:#FF0000}

6. Kemudian kita tutup dengan tag </style>

7. Dari variable tes yang sudah kita definisikan tasi maka kita dapat menggunakannya secar mudah

8. Contoh pemakain  didalam tag body, <font class=”tes”> Tes CSS </font>

9. Hasilnya adalah teks ” Tes CSS” akan berwarna merah, sesuai variable tes yang telah didefinisikan

Advertisement

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.