HTML Working Group

HTML is the primary language that Drupal speaks with end users. Drupal has come a long way in following standards and guidelines provided by the W3C, much longer than other equivalent systems. But there is still room for lots of improvements regarding the markup generated by Drupal core!

The goal for this group is to discuss and provide patches to improve the semantics of markup generated by Drupal core. Another primary goal is to review and refine the Drupal Markup Style Guidelines.

We need to keep the markup as simple as possible, but not simpler to provide just enough styling hooks for themers and designers. Yet, we need to keep the markup as clean and semantic as possible. I claim that this is not the current state of Drupal.

Related groups:

Lists vs. Divs

mrf's picture
public
mrf - Mon, 2008-03-31 13:37

So I took a look at the Drupal Markup Style Guidelines and one passage got me thinking.

If you're in doubt, put it in a div (and give it classes).

Don't leave content adrift on the page with no mark-up at all. Every chunk of html whether in a tpl file or a theme function should have a root DOM element. For module developers this is a div 95% of the time. In page.tpl.php it's the element. (or ?)


Syndicate content