I've been writing HTML for a while, but badly, very badly. I have been violating every best practice that exists
So I have decided to clean up my act. I bought a couple up-to-date books, read them, and am going to write every document I need to write for a couple years using HTML until I feel I am doing it right.
Here's my first effort at reformation, a business letter I wrote for a friend. I would appreciate a review. (Yes, I know this is a trivial example and it would be much more beneficial to have something reviewed that is more complicated. But I want to nip bad practices in the bud now, before they become embedded in me.)
<!DOCTYPE HTML>
<html>
<head>
<style type="text/css">
.bodyBody {
margin: 10px;
font-size: 1.50em;
}
.divHeader {
text-align: right;
border: 1px solid;
}
.divReturnAddress {
text-align: left;
float: right;
}
.divSubject {
clear: both;
font-weight: bold;
padding-top: 80px;
}
.divAdios {
float: right;
padding-top: 50px;
}
</style>
</head>
<body class="bodyBody">
<div class="divReturnAddress">
Lopes de Almeido, Evanildo<br/>
Bläsiring 161 <br/>
4057 Basel <br/>
<br/>
01 Dezember, 2012
</div>
<div class="divSubject">
Betreff: Vertretung waehrend Reise
</div>
<div class="divContents">
<p>
Sehr geehrte Frau Graf,
</p>
<p>
Ich fliege nach Brasilien am 29. Dezember 2012 für 6 Wochen.
Meine Nichte kann mich vertreten. Sie arbeitet sehr gesissenhaft.
Sie heisst Yasmin. Ihre Nummer ist xxx.
</p>
</div>
<div class="divAdios">
Freundliche Grüsse <br/>
<!-- Space for signature. -->
<br/>
<br/>
<br/>
Evanildo Lopes do Almeida <br/>
Hauswart Binningerstrasse 19/23 <br/>
</div>
</body>
</html>