<?xml version="1.0" encoding="UTF-8"?>

<!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="en" lang="en">

<head>
<title>Virtual Library</title>
</head>

<body>

<p>
Tanto rumor per poco.
<br/>
poco rumor per nulla.
</p>

<hr/>

<p>
altro rumor per mica tanto.
</p>

</body>
</html>


Il documento deve essere "well formed". (Vedi Slide Lez. 1)

elementi e attributi in minuscolo
SI   ---    <em>seconda</em>
NO   ---    <EM>seconda</EM>


elementi ben nidificati:
SI   ---    <p>metti la <em>seconda</em></p>
NO   ---    <p>metti la <em>seconda</p></em>


elementi sempre terminati dal corretto end tag:
SI   ---    <p>metti la <em>seconda</em></p>
NO   ---    <p>metti la <em>seconda</em>


elementi vuoti sempre terminati:
SI   ---    <hr/>,   <br/>
NO   ---    <hr>,   <br>

raccomandazioni per salvaguardare la "compatibilita'":
 usare <hr /> invece di <hr/>
 non usare <hr></hr> che pure sarebbe permesso ("element minimization")
 non fare element minimization su elementi non vuoti, anche se occasionalmente lo sono
 (cioe' non fare <p /> ma <p> </p>


attributi sempre tra virgolette
SI   ---    <table cellspacing="14">
NO   ---    <table cellspacing=14>