You are on page 1of 3

Membuat File HTML dan CSS

Langkah 1 Buat File : Index.html


!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <title>Untitled Document</title> <link rel="stylesheet" type="text/css" href="style.css"> </head> <body> <div id=header>ini header</div> <div id=kiri>ini kiri</div> <div id=kanan>ini kanan</div> </body> </html>

Langkah ke 2 Buat File CSS


#header

{ display: block; height: 100px; width: 800px; border: thin dotted; background-color: #0099FF;

} #kiri { background-color: #FF0000; display: block; float: left; height: 600px; width: 200px; border-top-width: thin; border-right-width: thin; border-bottom-width: thin; border-left-width: thin; border-top-style: dotted; } #kanan { background-color: #330066; display: block; clear: none; float: left; height: 600px; width: 600px; border: thin dotted; }

You might also like