Cara Membuat Web Facebook dengan HTML dan CSS - Pada artikel ini saya akan membuat web layout login facebook dengan html dan css. Untuk tampilan website yang dibuat cukup mirip dan keren. Website yang dibuat nanti tergolong masuk dalam jenis Website Statis.
Sebelum melanjutkan tutorial silahkan simak terlebih dahulu penjelasan dibawah ini.
Pengertian Website Statis
Website Statis adalah website dimana kita tidak bisa mengupdate konten secara langsung. Untuk mengupdate dan mengubah informasi konten didalam web tersebut, anda harus mengubah
kode codingan yang ada didalamnya secara manual...Selengkapnya
Sebelum membuat web, berikut alat dan bahan yang perlu anda siapkan.
- Komputer/PC/Laptop/Android
- Aplikasi Text Editor
- Browser
- Niat yang Tulus
Tutorial Membuat Layout Halaman Login Facebook
Berikut ini langkah-langkah membuat halaman login facebook menggunakan html dan css.
1. Buat Folder Baru: Facebook
Langkah pertama adalah membuat folder baru dan beri nama "facebook" dan kemudian silahkan ikuti step berikutnya.
2. Buat File: facebook.html
Jika sudah anda membuat sebuah file dan beri nama "facebook.html" dan kemudian copy script kode dibawah ini dan tempelkan.
Halaman Depan Facebook | Ansori Web
Email or Phone
Password
Log In
Keep me logged in
Forgot your password?
facebook
Connect with friends and the
world around you on Facebook.
See photos and updates
from friends in News Feed
Share what's new
in your life on your timeline
Find more
of what you're looking for with graph search
Sign Up
It's free and always will be
Birthday
MonthJanFebMarAprMayJunJulAugSepOctNovDec
Day12345678910111213141516171819202122232425262728293031
Year201520142013201220112010200920082007200620052004200320022001200019991998199719961995199419931992199119901989198819871986198519841983198219811980197919781977197619751974197319721971197019691968196719661965196419631962196119601959195819571956195519541953195219511950194919481947194619451944194319421941194019391938193719361935193419331932193119301929192819271926192519241923192219211920191919181917191619151914191319121911191019091908190719061905
Why do I need to provide my birthday?
Female
Male
By clicking Sign Up, you agree to our Terms and that you have read our Data Use Policy, including our Cookie Use.
Sign Up
Create a Page for a celebrity, band or business.
3. Buat File: style.css
Setelah itu silahkan buat file lagi dan beri nama "style.css" dan copy kode dibawah ini.
body {
margin: 0;
font-family: 'Lucida Grande', tahoma,verdana,arial,sans-serif;
line-height: 1.28;
}
#navwrapper {
width: 100%;
height: 82px;
background-color: #3b5998;
}
#navbar {
margin: 0 auto;
width:980px;
height:59px;
}
#contentwrapper {
width: 100%;
height: 606px;
background-color: #edf0f5;
}
#content {
margin: 0 auto;
width:980px;
padding-top:20px;
}
h2 {
font-family: tahoma,verdana,arial,sans-serif;
font-size: 38px;
letter-spacing:0.05px;
margin: 0;
color:#fff;
-webkit-font-smoothing: antialiased;
}
.logowrapper {
display: block;
padding: 30px 0;
}
#button {
position:relative;
width:45px;
height:18px;
background-color: #5b72a9;
border: 1px solid #999;
border-color:#8b9dc3 #2f477a #29447e #1a356e;
-webkit-box-shadow: 0 1px 0 rgba[0, 0, 0, .1];
cursor:pointer;
font-size:11px;
font-weight:bold;
text-align:center;
color:#fff;
}
.tablewrapper {
float:right;
margin-top:15px;
}
.row1 {
color:#fff;
font-size:11px;
width:164px;
cursor:pointer;
}
.inputtext {
border-color: #1d2a5b;
margin: 0;
width: 142px;
border: 1px solid #bdc7d8;
margin: 0;
padding: 3px;
background-color: #FAFFBD;
}
.row2 {
color:#9daccb;
font-size:11px;
width:164px;
cursor:pointer;
}
#leftbod {
width:565px;
display:inline-block;
}
.connect {
width:409px;
height: 72px;
padding: 42px 0 24px;
font-size: 26px;
font-weight: 700;
line-height: 36px;
color: #333;
display:inline-block;
}
.leftbar {
padding-bottom:10px;
margin-top:20px;
}
.iconwrap {
margin-right:20px;
width:55px;
}
.rowtext {
font-size:16px;
font-weight:bold;
color:#333;
}
.fb1 {
display:inline-block;
vertical-align: middle;
}
.rowtext2 {
font-size:15px;
color:#666;
margin-left:10px;
}
#rightbod {
display:inline-block;
vertical-align:top;
width:399px;
height:200px;
float:right;
}
.signup {
font-size:36px;
-webkit-font-smoothing: antialiased;
font-weight:700;
margin-bottom:5px;
}
.bolder {
font-family: 'Open Sans',sans-serif;
text-rendering:optimizelegibility;
color:#333;
}
.free {
font-size:19px;
margin-bottom:20px;
}
.formbox {
display: inline-block;
width:399px;
}
.inputbody {
display: inline-block;
font-size: 18px;
padding: 8px 10px;
border: 1px solid #bdc7d8;
-webkit-border-radius: 5px;
color:#333;
margin-bottom:10px;
}
::-webkit-input-placeholder {
color: #999;
}
::-moz-placeholder {
color: #999;
}
:-ms-input-placeholder {
color: #999;
}
.in1 {
width:172px;
}
.in2 {
width:377px;
}
.fr {
float:right;
}
.fl {
float:left;
}
.bday {
font-size:19px;
color:#141823;
-webkit-font-smoothing: antialiased;
margin-bottom:5px;
}
.selectbody {
display: inline-block;
height:30px;
font-size: 13px;
border: 1px solid #bdc7d8;
-webkit-border-radius: 5px;
color:#141823;
}
.why {
font-size: 11px;
color: #3b5998;
width:150px;
margin-left:10px;
cursor:pointer;
}
.h:hover {
text-decoration: underline;
}
.gender {
font-size: 18px;
color: #141823;
cursor: pointer;
padding: 0 10px 0 3px;
margin-right: 4px;
line-height: 18px;
vertical-align: middle;
}
.spanpad {
padding: 5px 0 5px 4px;
display: inline-block;
}
.mt1 {
margin-top:15px;
}
.m0 {
margin: 0;
}
.agree {
font-size: 11px;
color: #777;
width:316px;
margin: 11px 0 11px ;
}
.link {
color:#3b5998;
display: inline-block;
cursor: pointer;
}
.signbut {
font-size: 19px;
font-weight: 700;
letter-spacing: 1px;
color:#fff;
min-width: 194px;
padding: 7px 20px;
text-align: center;
-webkit-border-radius: 5px;
background: -webkit-linear-gradient[#67ae55, #578843];
-webkit-box-shadow: inset 0 1px 1px #a4e388;
border: 1px solid;
border-color: #3b6e22 #3b6e22 #2c5115;
margin-top: 10px;
margin-bottom: 10px;
text-shadow: 0 1px 2px rgba[0,0,0,.5];
cursor:pointer;
}
.signbut:hover {
background: -webkit-linear-gradient[#79bc64, #578843];
}
.create {
border-top: 1px solid #a0a9c0;
color: #666;
font-size: 13px;
font-weight: bold;
margin-top: 10px;
padding-top: 15px;
}
4. Save dan View
Setelah step by step selesai anda lakukan, langkah selanjutnya adalah menyimpan hasilnya. Jika sudah anda bisa menarik file "facebook.html" ke dalam browser. Maka jika benar akan muncul tampilan seperti gambar dibawah ini.
Kesimpulan
Itulah tadi pembahasan mengenai Cara Membuat Web Facebook dengan HTML dan CSS. Semoga bermanfaat untuk referensi tugas yang diberikan oleh guru anda.
Apabila ada pertanyaan baik saran dan kritik anda bisa berkomentar dibawah ini.
Selamat membaca dan mencoba...