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
We're a place where coders share, stay up-to-date and grow their careers.
Top comments (1)
divhas no semantic meaning at all. You throwdivs 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.
sectionindicates that its contents are different somehow to othersections or "main" kind of containers likefooteroraside. 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.