When writing CSS its considered a good practice to avoid element selectors. Here an h2 tag is selected via an id selector. Since the h2 in this case is the unique element, I would recommend giving it an id of its own. This makes the CSS more readable and generally and potentially avoids future conflicts. If later an h2 element was added to any child of #paint this would cause issues.
When writing CSS its considered a good practice to avoid element selectors. Here an
h2
tag is selected via anid
selector. Since theh2
in this case is the unique element, I would recommend giving it anid
of its own. This makes the CSS more readable and generally and potentially avoids future conflicts. If later anh2
element was added to any child of#paint
this would cause issues.