Tworze sobie taka testowa stronke i mam kilka pytan:
- czy optymalnie wykonuje css, czy są tu jakieś rażące błędy ?
- jak poprawnie użyc (zamiast ciagle
) - bo w3c validator ciagle zwraca bledy
- czy zastapienie
, poprawnym
umozliwi stworzenie czegos takiego:
normalna czcionka: Gruba czcionka - czy zamiast height, width - niepowinne stosowac margin x y z q ?
zamiast (przy pomocy
)
normalna czcionka:
Gruba czcionka
plik CV.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" xml:lang="pl" lang="pl">
<head>
<title>CV</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-2" />
<link rel="stylesheet" type="text/css" href="style.css" /> </head>
<body>
<p id="tytul">
Curriculum vitae!!
</p>
<p id="menu">
MENU:</p>
<ul>
<li> <a href="index.html">Strona główna</a></li>
<li> <a href="onet.pl">Onet</a></li>
</ul>
<p id="dane">
Dane osobowe
</p>
<p id="imie">
Imie:
</p>
<p id="imie_grube">
Mateusz
</p>
</body>
</html>
plik css (wiecej znacznikow - formatuje jeszcze index.html)
html, body
{
background-color: white;
width: 800px;
height: 600px;
}
#justowane
{
margin: 200px;
border: 200px;
text-align: center;
}
#justowane2
{
margin: 200px;
border: 200px;
color: red;
text-align: center;
font-size: 30px;
}
#justowane3
{
margin: 200px;
border: 200px;
text-align: center;
font-size: 20px;
font-style: italic;
}
#menu
{
width: 150px;
}
#tytul
{
margin-left: 300px;
font-size: 40px;
color: green;
font-style: italic;
}
#dane
{
margin-left: 300px;
width: 150px;
background:silver;
font-size: 20px;
}
#imie
{
margin-left: 300px;
}
#imie_grube
{
margin-left: 300px;
font-weight: bold;
}