Skip to content
HTML·Advanced·Conceptual·1 min read

Can a page have more than one main element?

Short interview answer

Only one non-hidden main landmark should represent the document's primary content. Nested or competing visible main regions make landmark navigation ambiguous.

Key takeaway

Explain the underlying mental model clearly, then support it with a concrete example and its trade-offs.

← Back to Semantic HTML

Related questions