Tag Info

Hot answers tagged

3

why is using multiple consecutive line breaks in HTML considered a bad practice Because it breaks the fundamental principle of separation of concerns: by mixing the "content" and "presentation" layers. By using multiple <br>s to create "margins" you are embedding the presentation in the content. To change the "margins" you need to change the ...


2

No.... image sprites are not good for photos and complex pictures. This is because the file size would simply become far to big and would delay the page from loading and increasing the time it takes for users to see any content. Sprites are good for basic template styling images that get reused across the site, this for many reasons is because it becomes ...


1

Because a line break is used to break a line and not add margin. The effect may appear the same but the semantics are not. If you want a margin on a div, use "margin". You have people who turn CSS off? I doubt that. You have visitors with javascript turned off? Those who know how to do that are the same who know what to expect as a result.



Only top voted, non community-wiki answers of a minimum length are eligible