DEV Community

Ebrar Gursel
Ebrar Gursel

Posted on

HTML Semantic

Is it semantic to use div inside a section or article?

Top comments (5)

Collapse
 
efrenmarin profile image
Efren Marin

Hello @ebrargursel

I'd go over the official docs to really understand semantic html even more. Especially in webdev and user facing production pages, it is really important. MDN Docs has a pretty good fleshed out section on this.

Collapse
 
ebrargursel profile image
Ebrar Gursel

Thanks for suggestion

Collapse
 
darkmavis1980 profile image
Alessio Michelini

Yes, they can contain almost any element

Collapse
 
ebrargursel profile image
Ebrar Gursel

Will it have any negative effect for SEO?

Collapse
 
darkmavis1980 profile image
Alessio Michelini

Of course no, it's semantically valid