Pregunta de entrevista de McAfee

Which takes precedence - HTML IDs or HTML Classes?