Pregunta de entrevista de McAfee

Which takes precedence - HTML elements or HTML IDs?