Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: replace <div> with <main> as root. #18938

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

ShayokhShorfuddin
Copy link

Description

I recently noticed that a <div> tag was being used as the root within the <body> tag. I researched a bit and I am confident that using <main> tag instead of <div> is better because it promotes semantic structure and better accessibility. In some cases, this can positively impact SEO in some cases.

Instead of using <div> tag as the root, using <main> is slightly better in terms of semantics and accessibility.
Instead of using <div> tag as the root, using <main> is slightly better in terms of semantics and accessibility.
@ShayokhShorfuddin ShayokhShorfuddin changed the title Replacing <div> with <main> as root. refactor: Replacing <div> with <main> as root. Dec 10, 2024
@ShayokhShorfuddin ShayokhShorfuddin changed the title refactor: Replacing <div> with <main> as root. refactor: replacing <div> with <main> as root. Dec 10, 2024
@ShayokhShorfuddin ShayokhShorfuddin changed the title refactor: replacing <div> with <main> as root. refactor: replace <div> with <main> as root. Dec 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant