HTML posts

Defensive HTML and CSS

By Ben Vinegar & Anton Kovalyov  |  Apr. 30, 2013  |  6 comments

When it comes to rendering on somebody else’s DOM, you can’t naively write HTML and CSS like you might for your own self-contained web application. You’ve got to think carefully about how preexisting CSS and JavaScript code might affect your application.

Before you begin to write any HTML or CSS, you’ll have to make an important decision regarding the look and feel of your application. Do you want your application to look the same everywhere? Or do you want the application to inherit the native look and feel of the page on which it’s hosted? Your answer will have a profound effect on your strategy for rendering your app.

One thing is constant: at some level, you’ll be practicing what we call defensive rendering. By defensive, we mean taking steps to output HTML and CSS that minimize the impact of the parent page on your application. The less you want your widget impacted...

HTML5 and CSS3 Books to Watch for in 2010

May. 26, 2010  |  37 comments

Over the past year, new techniques and tricks involving HTML5 and CSS3 enhancements have been shared on a number of websites, giving developers new possibilities for improving the user experience.

Of course, the plethora of information online is hard to keep up with, and some of it may be out of date, inaccurate, or may fail to promote accessibility, progressive enhancement, or other best practices methods.

To that end, designers and developers today may prefer to have a desktop reference in the form of a good old ink and paper companion.

So in this article, I’ve compiled a list of eleven books...