As HTML and CSS got new features and older browsers were no longer supported, we've been able to use less and less JavaScript for creating UI elements. Here are some examples of elements you can create with no JavaScript. Some solutions do still feel hacky and not flexible, but these are useful on smaller projects.
Table of contents
Responsive text truncationStar rating inputTooltip / dropdown menuModalFloating label inputToggle / Accordion5 Comments
Sort: