1.otwórz nowy plik HTML
2.przepisz kod html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta name="keywords" content="" />
<meta name="description" content="" />
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>Nazwa srony</title>
<link href="style.css" rel="stylesheet" type="text/css" media="screen" />
<div id="header">
<h1>Nagłówek</h1>
<p>Podnagłówek</p>
</div>
<!-- end #header -->
<div id="menu">
<ul>
<li><a href="">Strona główna<a/></li>
<li><a href="">Kontakt</li>
<li><a href="">Linki</li>
</ul>
</div>
<!-- end #menu -->
<div id="connect">
<h2>przykładowy tekst</h2>
<p>tręść</p>
</html>
</body>
1.<title></title> - tytuł dokumentu
2.<div id=""> - DIV jest to pojemnik - zwykły prostokąt, o niewielu domyślnych właściwościach
teraz przejdziemy do kody css
<link href="style.css" rel="stylesheet" type="text/css" media="screen" /> - kod html który przekierowóje nas do css
Kod css
body {
background: #333333 url(images/img01.png) no-repeat left top;
}
h1{
color: #111111;
}
h3{
color: #FF6633;
}
p {
color: #999999;
}
a {
color: #888888;
}
#header {
position: absolute;
margin-left: 300px;
margin-top: 90px;
height: 75px;
width: 250px;
background:#333333;
}
#menu {
width: 960px;
height: 40px;
padding: 0;
margin-left: 600px;
margin-top: 90px;
}
#menu a {
display: block;
margin-right: 1px;
padding: 13px 20px 10px 20px;
text-decoration: none;
text-transform: uppercase;
font-family: Arial, Helvetica, sans-serif;
font-size: 12px;
font-weight: normal;
color: #4E5B64;
border: none;
}
#connect {
position: absolute;
margin-top: 250px;
margin-left: 250px;
width: 900px;
height: 300px;
background:#555555;
}