EngineeringTech
Log In
Community
Classroom
Calendar
Members
Map
Leaderboards
About
Log In
3
Karolย Szykula
๐ฅ
Feb 18 (edited) โข
Next.js
How I structured my landing page HTML file semantically
Hello engineers,
I've adjusted some files to better set up the landing page from a semantic point of view. Changes I've introduced:
Every section has aria-labelledby="<id>-heading".
The biggest header text element in every section has id="<id>-heading".
Every icon is wrapped in a <span> element with aria-hidden="true".
The form has aria-label="Join waitlist form".
The form has a <label> element with htmlFor="<id>-email".
The form input has id="<id>-email".
The form input has name="email".
The form input is marked required.
The form button has type="submit".
Divs were replaced by <ul><li></li></ul>.
NavigationMenu has aria-label="Main navigation".
I've also added utility props for typography components, like className and id.
Link
to the diff.
Like
4
0 comments
3
How I structured my landing page HTML file semantically
powered by
EngineeringTech
skool.com/szykulatech-3240
We focus on JS/TS, React, Next.js, Supabase, shadcn/ui, Tailwind CSS, and deployments on Netlify. We focus on fast learning.
28
Members
0
Online
1
Admin
JOIN GROUP
Suggested communities
Ashish Builds Academy โ Lite
๐๐๐๐๐๐๐ ๐๐๐ฆ๐โญ๏ธ๐ฉท
KubeCraft Career Accelerator
REVENUE REVOLUTION
AI Automation (A-Z)
Build your own community
Bring people together around your passion and get paid.
Get started
Powered by