WELCOME ~ SELAMAT DATANG DI MYBLOG INDRA DARI SMK WIKRAMA 1 JEPARA

Selasa, 01 Agustus 2017

HTML kelas kelas

Assalamu’alaikum Warahmatullahi Wabarakaatuh.

Hari ini saya akan memposting tentang HTML kelas kelas yang saya pelajari dari w3school .

A.Pengertian:
HTML class atribut memungkinkan untuk menentukan gaya yang sama untuk elemen dengan nama kelas yang sama.
Di sini kita memiliki tiga <div> elemen yang menunjuk ke nama kelas yang sama:
B.Alat dan bahan:
1.Pc.
2.Sublime text.
3.Web browser.

C.Tahap pelaksanaan:
1.Buka sublime text.
2.isikan script sperti di bawah ini.

<!DOCTYPE html>
<html>
<head>
<style>
div.cities {
    background-color:black;
    color:white;
    margin:20px;
    padding:20px;
}
</style>
</head>

<body>

<div class="cities">
<h2>London</h2>

<p>London is the capital city of England. It is the most populous city in the United Kingdom, with a metropolitan area of over 13 million inhabitants.</p>

<p>Standing on the River Thames, London has been a major settlement for two millennia, its history going back to its founding by the Romans, who named it Londinium.</p>
</div> 

<div class="cities">
<h2>Paris</h2>

<p>Paris is the capital and most populous city of France.</p>

<p>Situated on the Seine River, it is at the heart of the le-de-France region, also known as the region parisienne.</p>

<p>Within its metropolitan area is one of the largest population centers in Europe, with over 12 million inhabitants.</p>
</div>

<div class="cities">
<h2>Tokyo</h2>

<p>Tokyo is the capital of Japan, the center of the Greater Tokyo Area, and the most populous metropolitan area in the world.</p>

<p>It is the seat of the Japanese government and the Imperial Palace, and the home of the Japanese Imperial Family.</p>

<p>The Tokyo prefecture is part of the world's most populous metropolitan area with 38 million people and the world's largest urban economy.</p>
</div>

</body>
</html>

4.lalu save
5.jalankan di web browser untuk melihat hasilnya.



D.Latar belakang:

Kewajiban siswa blc setelah mempelajari sesuatu wajib di posting guna menjadi laporan pada waktu pulang dan agar terbiasa bila melalukukan atau mengerjakan sesuatu membagikan ke publik.

E.Maksud tujuan:
Pembaca bisa mengetahui tentang html kelas kelas.

F.Referensi:
w3school.com.

Sekian terimakasih semoga bermanfaat.

Wassalamu’alaikum Warahmatullahi Wabarakaatuh.

0 komentar:

Posting Komentar

luvne.com ayeey.com cicicookies.com mbepp.com kumpulanrumusnya.comnya.com tipscantiknya.com