Adding Image Specificity in Semantic HTML

Hi, I wonder if there is a way using semantic HTML to label specific images for quality modification in the associated CSS file. Do I need to use non-semantic HTML for this?

Hi there!

I’m not quite sure what you’re asking, but you can use a class, id, or custom data-* attribute to target specific elements while keeping semantic HTML.

I think I asked my question too early and too wordy. The next lesson cleared up my confusion. Your answer is what the lesson taught.

thank you,

2 Likes