Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

187
Vistas
The reason to use "-" instead of "_" in the HTML class and id attributes

why do people use " - " between their words instead of " _ " for example class ="btn-submit", isn't this inefficient? if you use "_" by double-clicking it will select the whole class name instead of only one side so copying and using it in CSS or javascript will be easier. double click on each of these below to see the difference

class ="btn-submit"

class ="btn_submit"

so there is any specific reason to do it that way or it's just something that is people using by bad habit.

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda