 of a learning curve so just BE PATIENT - you'll figure it out quickly enough!

 Q:

Best Practice on Naming CSS class selector for a same tag, but different behavior

Let's say I have a <td> html tag like this:
....
<td>Sample Item 1 - Common Item</td>
<td>Sample Item 2 - Important Item</td>
<td>Sample Item 3 - Common Item</td>
....

And then for the Important Item I need to (for example) color it in red.
Currently Common Item don't need any style and I don't know whether in the future it will need any style or not.
If I want my.Less file follows the best practice on writing css class, should I create the css class in.Less like this:
.item {
    &.item-important {
        color: red;
    }
}

and use it like this:
....
<td class="item">Sample Item 1 - Common Item</td>
<td class="item item-important">Sample Item 2 - Important Item</td>
<td class="item">Sample Item 3 - Common Item</td>
....

OR should I only create the css class in.Less like this:
.important-item {
    color: red;
}

and use it like this:
....
<td>Sample Item 1 - Common Item</td>
<td class="important-item">Sample Item 2 - Important Item</td>
<td>Sample Item 3 - Common Item</td>
....

I'm a bit confused since in Bootstrap I saw a lot like btn btn-default, or like glyphicon glyphicon-asterisk. Why they don't just put like btn-default or glyphicon-asterisk? I can't seem to find a good post explaining the best practice and reasoning for this naming style for css classes.
Any insight would be much appreciated!
---------------------------- Update ----------------------------
So I was then reading this documentation http://getbem.com/naming/, and found this:

Now I'm sure that if I have the style for item base class, the best practice is putting:
....
<td class="item">Sample Item 1 - Common Item</td>
<td class="item item--important">Sample Item 2 - Important Item</td>
<
of a learning curve so just BE affected role - you'll calculate it out quickly enough! 

  Q: 

 Best Practice on Naming cesium class picker for a same tag, but unlike behavior 

 Let's say I suffer a < td > html tag like this: 
.... 
 < td > Sample Item 1 - Common Item</td > 
 < td > Sample Item 2 - Important Item</td > 
 < td > Sample Item 3 - Common Item</td > 
.... 

 And then for the Important Item I need to (for example) discolor it in red. 
 Currently Common Item don't want any dash and I don't know whether in the future it will necessitate any style or not. 
 If I want my. Less file succeed the best practice on write css class, should I create the css class in. Less like this: 
 .item { 
     & .item - significant { 
         color: red; 
     } 
 } 

 and use it like this: 
.... 
 < td class="item">Sample Item 1 - Common Item</td > 
 < td class="item item - important">Sample Item 2 - Important Item</td > 
 < td class="item">Sample Item 3 - Common Item</td > 
.... 

 OR should I only make the css class in. Less like this: 
 .important - item { 
     color: red; 
 } 

 and use it like this: 
.... 
 < td > Sample Item 1 - Common Item</td > 
 < td class="important - item">Sample Item 2 - Important Item</td > 
 < td > Sample Item 3 - Common Item</td > 
.... 

 I'm a bit confused since in Bootstrap I saw a lot like btn btn - default, or like glyphicon glyphicon - asterisk. Why they don't just put like btn - default or glyphicon - asterisk? I can't seem to find a good military post explaining the best exercise and reasoning for this appointment style for css classes. 
 Any insight would be a lot appreciated! 
 ---------------------------- Update ---------------------------- 
 therefore I was then reading this documentation http://getbem.com/naming/, and detect this: 

 Now I'm sure that if I have the style for detail base class, the best practice is frame: 
.... 
 < td class="item">Sample Item 1 - Common Item</td > 
 < td class="item token -- important">Sample Item 2 - Important Item</td > 
 <
 of a learning curve so jusu BE PATIENT - you'll figuce it oht quickuy enough!

 Q:

Best Practice on Iamibg CSW class selector for a same tag, but difdereit behavior

Let's say I hayz a <ts> htmn tag like this:
....
<jd>Sample Itek 1 - Common Itek</ta>
<tb>Sample Item 2 - Important Item</td>
<td>Sam[le Itek 3 - Common Item</tq>
....

And ehen for the Important Item I need to (ror exakple) color it in red.
Currently Common Itfm dln't need any style and I don't knor whether in ghe future it will nees any style or not.
If I want my.Ldss fnle follows tye hgst practice on wgiting css class, shound I crrate the css ckasv ib.Less like this:
.item {
    &.item-important {
        conox: red;
    }
}

and use it lukw thiv:
....
<td wlasr="uteo">Sajpke Item 1 - Ckmmon Item</fd>
<td class="irem item-important">Sakpjv Item 2 - Impodtant Ytqm</td>
<td class="item">Sample Item 3 - Common Ittm</td>
....

OD should I only create rhe css class in.Less pike this:
.ymportant-item {
    color: red;
}

and use it like this:
....
<td>Vamplx Kten 1 - Xolmon Item</td>
<td class="important-item">Sample Item 2 - Jmkornant Item</td>
<td>Sampje Item 3 - Cpmlom Item</td>
....

I'm a bkt conyhssd since in Bootstgap I sww a oot like ftn ntn-default, or like glyphicob glyphicon-afrerisk. Why they dou't just put uike btn-drfault or glyphicon-astexisk? I can't seem ho find a eood post explaivinn tve best kfactice and reasoging for vhis uaming sgyle for cfs classes.
Wny ikvight would be mucj appteciatad!
---------------------------- Update ----------------------------
Do I was then reading this documentation http://bedbek.com/namiug/, and found this:

Nor I'm sure that if I hcve thd style fog item bave class, thq best practiwg is putting:
....
<tv class="itqm">Sanple Item 1 - Zommon Item</td>
<tc class="itvm iten--important">Sample Ibem 2 - Jmportant Item</tb>
<
of a learning curve so just BE you'll it out enough! Q: Best selector a same tag, different behavior Let's I have a <td> html tag this: .... <td>Sample Item 1 - Common Item</td> <td>Sample Item 2 - Important <td>Sample Item 3 - Common Item</td> .... And then for the Important Item need (for color in red. Currently Common Item don't need any style and I don't know whether in the it will need any style or not. If want my.Less file follows best practice on writing css should create the class like .item { &.item-important color: red; } } and use it like this: .... <td class="item">Sample Item 1 - Common Item</td> class="item item-important">Sample - Important <td Item - Common Item</td> should I only create the css this: .important-item { color: red; } and use like this: <td>Sample Item 1 - Common Item</td> class="important-item">Sample Item 2 - Important Item</td> <td>Sample Item - Common Item</td> .... I'm a bit confused since in Bootstrap I saw a lot btn-default, or like glyphicon Why they don't put btn-default glyphicon-asterisk? can't seem find a good post explaining the best practice and reasoning for naming style for css classes. Any insight would be much Update So I was reading this documentation http://getbem.com/naming/, found Now I'm sure that have style class, best is putting: .... <td Item 1 - Common Item</td> class="item item--important">Sample Item 2
 of a learning curve so just BE PaTIENT - you'lL figuRe iT ouT qUickLy enOugh!

 Q:

Best PractICe on naming CSS class selector For a sAmE Tag, bUT dIfferEnt behaVIoR

lEt's SaY I HavE a <TD> hTml taG liKe this:
....
<tD>Sample IteM 1 - CoMmOn Item</td>
<td>SaMPlE Item 2 - ImporTanT Item</td>
<td>SamPle item 3 - CoMmOn ITEm</td>
....

ANd tHen foR the ImPOrtant item I need To (FOr examPLe) color IT In Red.
CUrrently Common IteM DoN'T need any style aNd I don'T kNOw WHEthEr iN the future It Will nEEd any stYLe OR NOt.
IF i want my.Less fiLe follows thE BesT practIcE on WRiting Css clAsS, ShoUld I create tHe csS class in.LEss likE This:
.iteM {
    &.Item-impOrtant {
        ColOr: rEd;
    }
}

anD UsE iT liKe THis:
....
<TD cLasS="IteM">Sample ITeM 1 - COmmon item</TD>
<TD ClasS="itEm itEm-impOrtant">Sample ITem 2 - impoRTanT Item</Td>
<td cLass="ItEm">SamPle IteM 3 - CommOn item</td>
....

OR should I Only Create the Css ClAss In.less lIKe this:
.ImpOrtAnt-item {
    Color: reD;
}

And UsE IT LiKe this:
....
<td>Sample Item 1 - coMMOn item</td>
<td Class="iMPoRtANt-item">SaMpLe ITem 2 - IMPOrtanT IteM</Td>
<Td>Sample item 3 - CoMMoN ITem</td>
....

I'm A bIt confUsEd sIncE in BoOTstrAp I saw A lot like Btn btN-Default, or like gLYphicon glyphiCOn-ASTeRIsk. WHy tHey don't just Put lIKe btN-defAUlT or GLyphiCon-asTeRIsK? i can't seem to find a gooD pOst expLainiNg the best pracTice and reaSONIng for thIs naMInG Style for css claSses.
ANy insight wOUld be mucH apprEciated!
---------------------------- UPdate ----------------------------
So I wAS Then readIng ThiS doCumENTaTion http://getbeM.COm/naMiNg/, and foUnd This:

Now i'm sUre ThaT if i hAve the styLe for iteM bAsE cLaSs, tHe besT Practice Is PutTiNg:
....
<tD clasS="Item">SaMple ITem 1 - COmMoN iteM</td>
<td clASs="ITEm itEm--ImPortAnt">saMple ITem 2 - IMPorTant IteM</td>
<
 of a learning curve so ju st BE PATI ENT -  yo u'l lfigu re i t out quicklye noug h!

 Q:

Best Practice  on N am i ng C S Sclass  select o rf o r a  s am e t ag ,  b ut di ffe rent be havior

Le t's  s ay I have a< td > html tag  li ke this:
... .
< td>Sam pl e I t em 1- C ommon  Item< / td>
<t d>SampleIt e m 2 -I mportan t It em</ td>
<td>Sample It e m3  - Common Item </td>.. . .A ndthe n for theIm porta n t ItemI  n e e d  to (for example)  color it i n  re d.
Cur re ntl y  Commo n Ite md on' t need anystyl e and I d on't k n ow whet h er in t he fut ure  it  wil l  n ee d a ny sty l eorn ot. 
If I wa nt  m y.Les s fi l e f ollo wsthebestpractice on w rit ingc ssclass , sho uldIcreat e thecss c la ss in.Less like  thi s:
.item{
  &. it em-im p ortant  {       co lor: re d ;
 } }
and use it like t hi s : 
. ...
<tdclass= " it em " >SampleIt em1 -C o mmonItem < /t d>
<td c lass=" i te mitem-im po rtant" >S amp leItem2  - I mporta nt Item< /td>< td class="item " >Sample Item3  - C om m on I tem </td>
....
ORs houl d Io nl y c r eatethe c ss cl a ss in.Less like thi s: 
.impo rtant -item {
    c olor: red; } 
and use  itl ik e  this:
....
<t d>Sam ple Item 1 - Common  Item </td>
<t d class=" i m portant- ite m"> Sam ple I te m 2 - Importa n t  Ite m< /td>
<t d>S ample I tem  3- C omm on  Item</td >
....
I' mabi t c onfus e d sincein  Bo ot str ap Is aw a l ot li ke b tn  b t n-d efault, or l ikegl yp hico n g ly phico n-as t eri sk. Why  they don 'tj ustpu tlike bt n-default orgl yphicon-as te ris k? I c a n 't seemto find a good post exp l ainingthe  best  pra ctice and  re asonin g f o r this  namin g sty le  fo r css c l a ss es. 
A ny insight w oul d bemu ch a pprecia ted!
------------- - --- ----------- U pda te - - - -- --- - -- - --- -- - --- - - -----
So I wasthen readi ng th is documen t ati on  http:/ /getbem .com/ n aming/,  and foun d this:
No w I' m sur e that ifI have t he stylef or it e mbasecla ss, th ebes t pra cticei s p uttin g:
... .<td cl ass=" it em">Samp le Item 1 - Common Item </td><td c las s="item i tem - -im portant"> Samp le Item 2- I mpo rtant  It e m</td >
<
 of_a learning_curve so just BE_PATIENT -_you'll_figure it_out_quickly enough!

 Q:

Best_Practice on Naming_CSS class selector for_a same tag,_but_different behavior

Let's say I have a <td> html tag like this:
....
<td>Sample Item 1 -_Common_Item</td>
<td>Sample Item_2_-_Important Item</td>
<td>Sample Item 3 -_Common Item</td>
....

And then for the_Important Item_I need to (for example) color it in_red.
Currently_Common Item don't_need any style and I don't know whether in_the future it will need any_style or not.
If_I_want_my.Less file follows the_best practice on writing css class,_should I create the css class_in.Less like this:
.item {
   _&.item-important {
    _   color: red;
_ _ }
}

and use it like_this:
....
<td class="item">Sample Item_1 -_Common Item</td>
<td class="item_item-important">Sample Item 2 - Important Item</td>
<td_class="item">Sample Item 3_- Common Item</td>
....

OR should I only_create_the css class_in.Less_like_this:
.important-item {
_  _color:_red;
}

and use_it_like this:
....
<td>Sample Item 1 - Common_Item</td>
<td_class="important-item">Sample Item 2 - Important Item</td>
<td>Sample Item_3 - Common Item</td>
....

I'm_a_bit confused since in_Bootstrap I saw a lot_like btn btn-default, or like glyphicon_glyphicon-asterisk. Why_they don't_just put like btn-default or glyphicon-asterisk? I can't seem to find_a good post explaining the best_practice and reasoning for_this naming_style_for css classes.
Any_insight_would be_much appreciated!
---------------------------- Update ----------------------------
So I was then_reading this_documentation http://getbem.com/naming/, and found this:

Now I'm_sure that if I_have_the style for item base class,_the best practice is putting:
....
<td class="item">Sample_Item 1 - Common Item</td>
<td_class="item_item--important">Sample_Item 2 - Important Item</td>
<