Membuat sebuah halaman web jejaring sosial sederhana - FaceMu
Contoh tampilannya seperti berikut :
Script kode html dapat dilihat di bawah ini :
Untuk membuat halaman web ini , terdapat 2 file script kode, yaitu file script kode dengan format .css dan dengan format .html
1. File script kode dengan format .css
#footer{
width:1025px;
background-color:purple;
border:1px solid purple;
height:40px;
}
#isi{
width:1025px;
height:310px;
border:1px;
background-image:url(images/background.jpg);
background-repeat:no-repeat;
}
#erviando{
width:500px;
height:310px;
border:1px;
background-image:url(images/erviando1.png);
background-repeat:no-repeat;
background-position:center center;
}
#header{
width:1025px;
background-color:purple;
border:1px solid purple;
}
#login{
margin-left:500px;
border:1px ;
height: 50px;
width: 400px;
}
#font{
font-size:8px;
font-family:arial;
color:white;
}
#logo{
margin-top:20px;
margin-left:200px;
float:left;
background-image:url(images/facemu.png);
background-repeat:no-repeat;
background-position:center center;
border:2px;
height: 30px;
width: 150px;
}
#teksemail{
float:left;
width:80px;
height:10px;
border:1px ;
}
#tekspassword{
margin-left:88px;
float:left;
width:80px;
height:10px;
border:1px ;
}
#formemail{
background:white;
float:left;
width:160px;
height:20px;
border:1px ;
}
#formpassword{
background:white;
float:left;
margin-left: 8px;
width:160px;
height:20px;
border:1px ;
}
#button{
margin-top:30px;
margin-left: 350px;
width:50px;
height:30px;
border:1px ;
}
#ingatsaya{
float:left;
width:120px;
height:10px;
border:1px ;
}
#radio{
float:left;
width:20px;
height:10px;
border:1px solid black;
}
#teksingatsaya{
margin-left:20px;
width:100px;
height:10px;
border:1px ;
}
#lupapassword{
margin-left: 170px;
width:120px;
height:10px;
border:1px ;
}
2. File script kode dengan format .html
<!DOCTYPE HTML>
<html lang="en">
<head>
<title> Selamat Datang di Face-mu - Masuk, Daftar, atau Pelajari Selengkapnya
</title>
<link rel="stylesheet" href="styleheader.css" type=text/css />
<link rel="shortcut icon" href="images/umkcl.png"/>
</head>
<body>
<div id="header">
<div id="logo">
</div>
<form action=”#” method=”post”>
<div id="login">
<div id="font">
<div id="teksemail">
Email:
</div>
<div id="tekspassword">
Password:
</div>
<div id="formemail">
</div>
<div id="formpassword">
</div>
<div id="button">
<input type="button" value="login">
</div>
<div id="ingatsaya">
<div id="radio">
</div>
<div id="teksingatsaya">
Ingat saya
</div>
</div>
<div id="lupapassword">
Lupa password?
</div>
</div>
</div>
</form>
</div>
<div id="isi">
<div id="erviando">
</div>
</div>
<div id="footer">
</div>
</body>
</html>
Selamat Belajar !!!








0 komentar:
Posting Komentar