Settings

Theme

Ask HN: Bootstrap semantics

1 points by eze 13 years ago · 5 comments · 1 min read


Hello! Could somebody explain why Bootstrap asks you to write <table class="table"> instead of <table>, or <button class="btn"> instead of <button>? Why not apply the default styling to platform-independent HTML markup?

Thanks!

Benferhat 13 years ago

You might not want to style all your buttons in that particular way. The least they could do is separate it into classes. SASS inheritance would be nice, too.

  • ezeOP 13 years ago

    Thanks. Yes, the way I humbly see it is that you could always add pre-made or custom-made classes that would alter the default behavior.

omgmog 13 years ago

I think in the case of the "btn" class it's designed to be usable on a, span, button, input, etc.

  • ezeOP 13 years ago

    Thanks. I can see your point about "btn" and, to be honest, I'm just getting started with Bootstrap. These points are a bit confusing at first.

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection