Diberdayakan oleh Blogger.
RSS

Ordinary Web Interface Structure with CSS

Membuat tampilan halaman web sederhana

Contoh tampilan halaman webnya sebagai berikut :


 Script kode html dapat dilihat di bawah ini :

Untuk membuat halaman web sederhana  ini , terdapat 2 file script kode, yaitu file script kode dengan format .css dan dengan format .html

1. File script kode dengan format .css

body{
margin :10px auto;
width: 1000px;
height:700px;
}
header,nav,section,footer,article,aside{
display:block;
border: 1px;
}
header {
height: 100px;
border: 1px solid green;
}
nav{
width: 1000px;
height: 50px;
border: 1px solid blue;
}
section{
width: 1000px;
height: 350px;
border: 1px solid red;
}
article{
margin-top: 20px ;
margin-left: 20px ;
width: 450px;
height: 280px;
border: 1px dashed orange;
}
aside {
margin-top: -283px ;
margin-left: 500px ;
width: 450px;
height: 280px;
border: 1px dashed black;
}
footer {
height: 30px;
border: 1px solid green;
}



2. File script kode dengan format .html

<!DOCTYPE HTML>
<html lang="en">

<head>
<title>Desain Layout</title>
<link rel="stylesheet" href="layout.css" type="text/css" />
</head>

<body>
<header>header</header>
<nav>nav</nav>
<section>
<article>article</article>
<aside>aside</aside>
section
</section>
<footer>footer</footer>
</body>
</html>

  • Digg
  • Del.icio.us
  • StumbleUpon
  • Reddit
  • RSS

0 komentar:

Posting Komentar