Computer Programming

How many dash can I use in CSS .class Selector value ?

2 Answers
2 answers

How many dash can I use in CSS .class Selector value ?

1
Example

1. <p class="sm-am"> </p>
2. <p class="sm-am-1"> </p>
3. <p class="sm-am-g-1"> </p>

Can I use all three. I use 2 dash. Is this all three format right.
Wrote answer · 11/28/2021
Karma · 3215
1
You can use as many dashes as you feel comfortable using. It's a css class name, so it can be anything you want.
Wrote answer · 12/12/2021
Karma · 1435

Related Questions

How to fix error Argument of type 'MonoTypeOperatorFunction<RouterEvent>' is not assignable to parameter of type 'OperatorFunction<Event_2, RouterEvent>' in Angular?
What is the figure of IPO cycle?
How do robots provide best experience to the customers?
How to use and implement lang attribute and dir attribute in "<td class="sd">Sindhi Text</td>" ? Is It necessary to use span element for this purpose ? What is right way to use lang dir attribute according to w3.org ? Which elements/tag like block and inline etc. support lang dir attribute ?
What is this cow?
The average is called .............. in statistical language?
यथाशक्ती, पाऊसपाणी या सामातजक शब्दाांचा करून प्रकार तलहा (२)?