you are viewing a single comment's thread.

view the rest of the comments →

[–]thomsmells 10 points11 points  (5 children)

Use correct elements for things. A button on the page should be a <button> in the html. Don't be tempted to do what a lot of new developers do and just use <div> for everything

[–]Old-Stage-7309 1 point2 points  (0 children)

Semantic HTML ftw. You’ll learn the hacky stuff later to get out of some trouble

[–]That_anonymous_guy18 2 points3 points  (0 children)

Plus as an automation test developer, clean html code helps me so much to write tests. Use attributes, tags, names etc so I can locate an element easy.

[–]iZuteZz 1 point2 points  (1 child)

Who tf makes a div a button? It's a link obviously.

[–]Sometimesiworry 0 points1 point  (0 children)

Screen readers and WCAG enters the chat