@HA3IK
Posted
Also, SECTION
is tag of "Sectioning Content" category - creates a section that defines the scope of the heading (H1-6) content.
That is, semantically, MAIN
data (with FIGURE
) is outside the context of H1
.
Marked as helpful
@HA3IK
Posted
Also, SECTION
is tag of "Sectioning Content" category - creates a section that defines the scope of the heading (H1-6) content.
That is, semantically, MAIN
data (with FIGURE
) is outside the context of H1
.
Marked as helpful
@HA3IK
Posted
Hello. Instead of creating a new separate SECTION
for the title and description, you can use FIGCAPTION, which is specifically intended to add text to the FIGURE content.
MAIN > FIGURE > IMG + FIGCAPTION > H1 + P
This will allow you to keep your HTML structure cleaner and more logical.
Marked as helpful
Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!
Join our Discord