Why this
Code:
<!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 http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Untitled Document</title>
<style type="text/css">
#blog {
margin:8px;
}
</style>
</head>
<body>
<div id="blog">
<p>Content</p>
<ul>
<li>1</li>
<li>2</li>
</ul>
</div>
</body>
</html>
as opposed to
Code:
<!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 http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Untitled Document</title>
<style type="text/css">
#blog { margin:8px;}
</style>
</head>
<body>
<div id="blog">
<p>Content</p>
<ul><li>1</li><li>2</li>
</ul>
</div>
</body>
</html>
The reason is the latter is harder to read and only saves a few bytes at most depending on how big your file is. Almost all connections today will not even not the difference in size it is so small (unless working with an absurdly large file, at that point though you should break the file down).
Bookmarks