Menu

1 / 4

HTML Attributes Every Frontend Developer Should Know Before Writing More JavaScript

JavaScript in Plain English - Medium·Usman Writes·about 9 hours ago
#DuwppjsD
Reading 0:00
15s threshold

Member-only story

HTML Attributes Every Frontend Developer Should Know Before Writing More JavaScript

Build modern frontends with native HTML attributes and skip the third-party libraries.

Usman Writes

18 min read21 hours ago

Press enter or click to view image in full size HTML already has built-in attributes for popups and dialogs, no JavaScript needed.

A lot of the JavaScript in a typical project exists to do things the browser can already do by itself. A popup menu, an FAQ accordion, a dialog that closes when you click outside it, a keypad that shows only numbers on a phone: each of these used to need a script, and each now has an HTML attribute that does the job.

Link for free non-member readers

This article walks through 21 of those attributes, grouped into four parts. Performance, interaction without JavaScript, forms and mobile keyboards, and links and content.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.