Sorcerer's Tower

Entries tagged "semantics"

Found 2 entries tagged with "semantics".

Beyond Tables, Beyond Divs - Simple JavaScript Calculator III

As we (hopefully) all know, using HTML tables for layout is Bad and Wrong.

Unfortunately, the most common way people avoid using tables is to just replace their table, tr and td tags with divs, divs and more divs.

The div tag is a generic container that should be used as a last resort, if there are no other more suitable options.

Whilst the problem of excess divs is not limited to the conversion of table layouts, it is perhaps most obvious here, as it shows the developer is still stuck in the column+row frame of mind, rather than thinking about what they are actually displaying.

In this blog entry, I show an example of how avoiding this mindset can result in much simpler and cleaner code.

Accessibility Is Not CSS!

The biggest barrier to creating an accessible Internet is not browser support or badly designed syntax, but rather people's false beliefs of what accessibility is; what it means to 'be accessible'. For many people, being accessible means switching from font tags to CSS, using em tags for italics, and replacing tables with divs. THAT IS NOT ACCESSIBILITY!

Read on to find out more.