Use more semantic elements. #52

Closed
opened 2025-08-19 12:47:32 -04:00 by Cutieguwu · 1 comment
Owner

https://www.reddit.com/r/learnprogramming/comments/11rozm4/htmlcss_please_eli5_why_do_we_use_divclass/

Semantic elements improve human and machine readability of code. For me, I may be fine with a ton of divs and simple class names, but it can greatly affect the performance of a screen reader.

Some outlines for basic semantic elements can be found here:

https://www.w3schools.com/html/html5_semantic_elements.asp

Of course, fixing this is going to lead to a major refactor...

https://www.reddit.com/r/learnprogramming/comments/11rozm4/htmlcss_please_eli5_why_do_we_use_divclass/ Semantic elements improve human and machine readability of code. For me, I may be fine with a ton of divs and simple class names, but it can greatly affect the performance of a screen reader. Some outlines for basic semantic elements can be found here: https://www.w3schools.com/html/html5_semantic_elements.asp Of course, fixing this is going to lead to a major refactor...
Cutieguwu added this to the Cutieguwu Website V2 milestone 2025-08-19 12:47:32 -04:00
Cutieguwu added the EnhancementHelp Wanted labels 2025-08-19 12:47:32 -04:00
Cutieguwu self-assigned this 2025-08-19 12:47:33 -04:00
Cutieguwu added this to the Cutieguwu Website V2 project 2025-08-19 12:47:33 -04:00
Author
Owner

Also, consider how headings are used within pages. Screen readers may cause confusion to the user if headings are skipped.

See: https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/Heading_Elements

Also, consider how headings are used within pages. Screen readers may cause confusion to the user if headings are skipped. See: https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/Heading_Elements
Sign in to join this conversation.