Quick Tips

Don’t use the title attribute for essential information

The title attribute can be used to provide advisory information about an HTML element, but do not use it for essential information since not all users will notice the title text.

Posted on April 7, 2009

Don’t duplicate link text in the title attribute

Repeating a link’s text in its title attribute serves no purpose for the end user. All it does is add noise and increase page size.

Posted on March 31, 2009

Use the p element to create paragraphs

Using p elements instead of multiple br elements to create paragraphs in HTML makes your documents more accessible and easier to style.

Posted on March 16, 2009

The alt attribute is for images only

The alt attribute is valid only for images and provides alternative text used when the image cannot be rendered. Do not use it with links and other non-image HTML elements.

Posted on February 16, 2009

It’s “class”, not “CSS class”

There is nothing called a “CSS class” in HTML or CSS, so please refer to values of the HTML class attribute as classes or class names instead.

Posted on February 12, 2009

Creating valid names with the id attribute

There is a simple rule that defines which characters you may use with the id attribute: begin with a letter, then add any number of digits, hyphens, underscores, colons, and periods.

Posted on February 2, 2009

Specify each HTML document’s main natural language

Always specify which natural language (spoken, written or signed human language) is used for a document’s content. Use the lang and/or xml:lang attributes for this.

Posted on January 20, 2009

The id attribute’s value must be unique

The value of the id attribute must be unique in an HTML document. In other words, the same id value may only occur once.

Posted on December 8, 2008

Quick Tips for web developers and web designers

By starting a new category of posts that focus on quick and simple tips related to front-end web development I hope to help people avoid making some mistakes that I see repeatedly.

Posted on December 2, 2008

Page navigation

Page 1 | Page 2

Archive contents