• Tidak ada hasil yang ditemukan

CSS.

N/A
N/A
Protected

Academic year: 2017

Membagikan "CSS."

Copied!
12
0
0

Teks penuh

(1)

CSS

Danang Wahyu Utomo

(2)

Objectives

Syntax

Selector

Background

Text

Font

(3)
(4)

Selector

Element Selector

- Pemilihan elemen berdasarkan nama elemen

<head> <style> p {

text-align: center; color: red;

}

</style> </head> <body>

(5)

Selector

Id Selector

-

Id selector digunakan pada tag

attribut

id

untuk menentukan

elemen tertentu

-

Penulisan menggunakan # diikuti

nama elemen

<head> <style> #p1 {

text-align: center; color: red;

}

</style> </head> <body>

<p id= p1 >My Paragraph usi g

(6)

Selector

Class Selector

-

class selector digunakan pada tag

attribut

class

untuk menentukan

kelas tertentu

-

Penulisan menggunakan

.

diikuti

nama elemen

-

Bisa digunakan untuk

menentukan desain pada elemen

tertentu

<head> <style> p.first {

text-align: center; color: red;

}

</style> </head> <body>

<h1 class= first > My Paragraph

using CSS</h1>

<p class= first >My Paragraph

(7)

Background

<head> <style> body {

background-color: blue; }

</style> </head> <body>

<p>My Paragraph using CSS</p> </body>

<head> <style> body {

background : url (koala.jpg); }

</style> </head> <body>

(8)

Text

Text Allignment

<head> <style> p {

text-align : center; }

</style> </head> <body>

(9)

Text

Text Decoration

<head> <style> a {

text-decoration : none; }

</style> </head> <body>

<a href= ai .ht l >My Paragraph</a> </body>

Try using :

-Overline

(10)

Font

<head> <style> p {

font-family : Tahoma; font-size : 20px;

font-style : italic; }

</style> </head> <body>

(11)

Latihan

Little Women

by Louisa May Alcott

Published in 1868, Little Women follows the lives, loves and

tribulations of fours sisters growing up during the American

(12)

Latihan

Buat 1 page layout berita menggunakan table

Header

Menu

Content

Referensi

Garis besar

Dokumen terkait

This study was purposed to analyze the women’s struggle for duty and career during American Civil era as found in the Louisa May Alcott’s novel Little Women?. I employed the

In this research the technique that is used to analyze the data is based on sociological approach that analyzes the effects of civil war on families in Louisa May Alcott’s