Tag

no-JS

0 views collected around this technical thread.

Tencent IMWeb Frontend Team
Tencent IMWeb Frontend Team
Jan 25, 2018 · Frontend Development

Why Use Pure HTML/CSS Over JavaScript? 7 Practical Techniques

This article explains why simple HTML/CSS solutions are often preferable to JavaScript, and demonstrates seven practical techniques—including navigation highlighting, hover‑based menus, custom form controls, equal‑height columns, dynamic item layouts, form submission, and automatic Enter‑key handling—each with clean code examples.

HTMLWeb Developmentcss
0 likes · 12 min read
Why Use Pure HTML/CSS Over JavaScript? 7 Practical Techniques
Ctrip Technology
Ctrip Technology
Dec 16, 2016 · Frontend Development

Implementing Expandable Content with Pure CSS Using :target and :checked

This article explains how to create a "show more" effect without JavaScript by leveraging CSS pseudo‑classes like :target and :checked, detailing the required HTML structure, CSS rules, code examples, and the advantages and drawbacks of each approach.

Frontendcheckedcss
0 likes · 13 min read
Implementing Expandable Content with Pure CSS Using :target and :checked