Quote:
Originally Posted by roger_d
Inline styles (first example) add code weight to the page. This means a really small hit SEO wise. New design standards don't include inline styles.
|
Indeed, but also inline styles such as inline CSS code actually caches faster if the user has not visited your site or cleared his cache. At least I believe thats how it works (I won't pretend to be an expert on something such as this) but with minimal amounts of code it doesn't really matter.
Although i'm going to work this on a programming example you should always use code comments, I am a big fan of commenting my code and documenting it properly. I love having neat and easy to read code and I can have 200+ lines of comments and then if I want to go about the project professionally I will have a documentation file and a read-me with the project files.
Not getting too far off topic but obtrusive ++ unobtrusive such as whether indentation in your code is standards or not, from a programmer perspective (and a beginner programmer at that) I believe that it is, but I would also say that web projects need such things, for example which HTML document looks better.
HTML Code:
<html>
<head>
<title>Unobtrusive HTML</title>
</head>
<body>
<ul>
<li>List Item 1</li>
<li>List Item 2</li>
<li>List Item 3</li>
</ul>
</body>
</html>
HTML Code:
<html>
<head>
<title>Unobtrusive HTML</title>
</head>
<body>
<ul><li>List Item 1</li><li>List Item 2</li><li>List Item 3</li></ul>
</body>
</html>
It's generally a matter of opinion in my view, apart from the necessities such as making sure that your webpage loads as fast, as secure and as functional as possible, everything else is moot point.