Archived posts, April 2012

The HTML5 placeholder attribute is not a substitute for the label element

The placeholder attribute is meant to give the user a nonessential hint before filling in a form field, not replace the label element.

Posted on April 9, 2012 in Quick Tips, Usability, HTML 5, Accessibility

End tags, semi-colons and maintainable code

Relying on browsers to magically insert missing code, like optional HTML tags or semi-colons and curly braces in JavaScript, is not developer-friendly.

Posted on April 17, 2012 in Coding, JavaScript, HTML 5

Automatic line breaks in narrow columns with CSS 3 hyphens and word-wrap

As text columns become narrower, the risk of long words overflowing increases. Luckily you can use the hyphens and word-wrap CSS properties to prevent it.

Posted on April 23, 2012 in CSS