mdo/code-guide

Was just wondering what your policy was on #IDs

blackspike opened this issue · 3 comments

I notice in your source that they are kebab cased, but not mentionned in the guide. Cheers!

<h2 id="golden-rule">Golden rule</h2>

mdo commented

In general I lowercase-dash everything—classes, names, ids, etc. I don't label it anyone thing or another and mostly optimize for my own experience with it. Like double-clicking parts of a dashes word vs camelCase—such a nice and small utility to me. CamelCase just looks like gibberish to me even though we use some of in the Bootstrap docs. Makes me want to change it now haha.

Unsure if we should put this in the guide, but maybe.

I was wondering this too.

Maybe it should be in the guide...