News for hackers. Stuff that matters.
Re:Mvp.css – build your landing page with only semantic HTML by madeofpalk on Saturday November 21, 2020 @10:32AM (#25170208)
> There’s a reason why the class attribute exists. You can also validly use custom elements and attributes

To hammer this home - there is nothing bad about divs when it comes to accessability which, to be honest, is the only concern that "semantic html" should be about.

Re:Mvp.css – build your landing page with only semantic HTML by SippinLean on Saturday November 21, 2020 @10:53AM (#25170311)
> there is nothing bad about divs when it comes to accessability [sic]

There certainly is. Prefer h1 over div, button over div, etc whenever appropriate.

https://www.w3.org/WAI/tips/developing/#use-mark-up-to-conve...

Re:Mvp.css – build your landing page with only semantic HTML by madeofpalk on Saturday November 21, 2020 @12:37PM (#25171144)
Sorry, yes you're right. Use semantic elements when they are available. But otherwise, there's nothing wrong with divs. Assistive technologies mostly ignore them untill you give them meaning.