Redefining element type styling within CSS ID's

Redefining element type styling within CSS ID's
0

#1

Hey together,

as I’m rather new to WebDev, I currently try to finish the Responsive WebDesign course of freeCodeCamp.

When looking at the code of the product landing page sample [https://codepen.io/freeCodeCamp/pen/RKRbwL],
I became curious about the following area of code:
image

As observable, the h2 element is redefined within the ID.
However, whenever I try to copy this code into a different pen or start to reimplement this redefinition,
the code does not work i.e. no changes to the h2-element are applied.

Do you know what’s the reason for this issue?

Thanks in advance!


#2

https://learn.freecodecamp.org/front-end-libraries/sass


#3

Thank you very much!