demosthenes.info

I’m Dudley Storey, the author of Pro CSS3 Animation. This is my blog, where I talk about web design and development with , and . To receive more information, including news, updates, and tips, you should follow me on Twitter or add me on Google+.

web developer guide

my books

Book cover of Pro CSS3 AnimationPro CSS3 Animation, Apress, 2013

my projects

A Sass color keyword system for designers. Replaces CSS defaults with improved hues and more memorable, relevant color names.

CSSslidy: an auto-generated #RWD image slider. 3.8K of JS, no JQuery. Drop in images, add a line of CSS. Done.

tipster.ioAutomatically provides local tipping customs and percentages for services anywhere.

Common HTML Formatting Errors

html / typography

Estimated reading time: 49 seconds

A common error when making web pages for the first time is to add extra carriage returns to the code – i.e. pressing the “return” key multiple times – in an attempt to get more vertical space between lines. Carriage returns, tabs, and more than one space are ignored by — instead, they must be coded for. HTML is oblivious to carriage returns and spaces.

A common alternative error is to add tags that are devoid of content to attain the same effect – i.e. <p></p> <p></p> <p></p>, also known as “empty tags”. These should be avoided at all costs: there should never be any elements empty of content in a page, as the presence of such makes using to control the appearence of that page in a consistent manner far more difficult.

(For those who may have attempted to make web pages in the past, <br /> tags and &nbsp; HTML entitities fall into the same category.)

comments powered by Disqus

This site helps millions of visitors while remaining ad-free. For less than the price of a cup of coffee, you can help pay for bandwidth and server costs while encouraging further articles.