magazzino disordinato di appunti
DocType
Questi codici possono essere usati come base di partenza per la scrittura di un nuovo documento. Ognuno riporta la giusta dichiarazione del DocType
HTML 4.01 Templates
HTML 4.01 Transitional Document
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Conforming HTML 4.01 Transitional Template</title>
</head>
<body>
</body>
</html>
HTML 4.01 Strict Document
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>Conforming HTML 4.01 Strict Template</title>
</head>
<body>
</body>
</html>
HTML 4.01 Frameset
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN"
"http://www.w3.org/TR/html4/frameset.dtd">
<html>
<head>
<title>Conforming HTML 4.01 Transitional Template</title>
</head>
<frameset>
<noframes>
<body>
<!-- place alternative information for accessibility purposes here -->
</body>
</noframes>
</frameset>
</html>
XHTML 1.0 and 1.1 Templates
XHTML 1.0 Transitional Document
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Conforming XHTML 1.0 Transitional Template</title>
</head>
<body>
</body>
</html>
XHTML 1.0 Strict Document
<!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>
<title>Conforming XHTML 1.0 Strict Template</title>
</head>
<body>
</body>
</html>
XHTML 1.0 Frameset
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Conforming XHTML 1.0 Frameset Template with accessibility</title>
</head>
<frameset>
<noframes>
<body>
<!-- place alternative information for accessibility purposes here -->
</body>
</noframes>
</frameset>
</html>
XHTML 1.1 Document
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Conforming XHTML 1.1 Template</title>
</head>
<body>
</body>
</html>
HTML 5
<!doctype html>
<html class="no-js" lang="en" dir="ltr">
<head>
<meta charset="utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>TITOLO</title>
<link rel="stylesheet" href="css/style.css">
</head>
<body>
</body>
</html>