I've been a professional C, Perl, PHP and Python developer.
I'm an ex-sysadmin from the late 20th century.
These days I do more Javascript and CSS and whatnot, and promote UX and accessibility.
div has no semantic meaning at all. You throw divs in pretty much to make containers for CSS or to allow things inside it to do stuff like width: 100%.
There was an old dream called "the semantic web" which developers ignored because it didn't directly affect them and they didn't care about users with disabilities.
section indicates that its contents are different somehow to other sections or "main" kind of containers like footer or aside. This makes the content much easier to parse programmatically - search engines can scrape the page knowing that content is confined to sections and not grab irrelevant noise, screen-readers for visually impaired users can allow them to skip between sections, that sort of thing.
For further actions, you may consider blocking this person and/or reporting abuse
Top comments (1)
div
has no semantic meaning at all. You throwdiv
s in pretty much to make containers for CSS or to allow things inside it to do stuff likewidth: 100%
.There was an old dream called "the semantic web" which developers ignored because it didn't directly affect them and they didn't care about users with disabilities.
section
indicates that its contents are different somehow to othersection
s or "main" kind of containers likefooter
oraside
. This makes the content much easier to parse programmatically - search engines can scrape the page knowing that content is confined to sections and not grab irrelevant noise, screen-readers for visually impaired users can allow them to skip between sections, that sort of thing.