logo
Kurashizu Blogwhere ideas flow
  • Home
  • News
  • Blog
  • About
  • Home
  • News
  • Blog
  • About

© 2026 Kurashizu. All rights reserved.

Admin·New Post·Service Status
Powered by Cloudflare·31.10.26
← Back to news

Small, native web tricks worth remembering

Original article
htmlcat.net|192 points|50 comments|by marcomezzavilla|Aug 21, 2026

🐱 HTMLcat: A Repository of Essential Native Web Snippets

Welcome to HTMLcat, a curated collection of compact, native web development tricks designed to be remembered and reused.

The site functions as a digital board of "post-its," where each entry follows a specific logic: Web Trick=Platform Feature+Practical Example+Critical Caveat\text{Web Trick} = \text{Platform Feature} + \text{Practical Example} + \text{Critical Caveat}Web Trick=Platform Feature+Practical Example+Critical Caveat

🛠️ The Implementation Workflow

Before deploying any of these tricks, ensure you follow this verification process:

  • Verify the support label (browser compatibility).
  • Implement a reliable fallback mechanism.
  • Conduct tests using actual browsers.
  • Validate accessibility with assistive technology.

Pro Tip: Native solutions are almost always preferable to heavy libraries if the browser support allows for it.


🗺️ Knowledge Map

The following diagram illustrates how HTMLcat organizes its technical snippets:


📚 The "Post-it" Index

Below is the comprehensive list of native tricks currently archived.

CategoryFeature / TrickPrimary Focus
JSDevice typeHardware detection
CSSHide scrollbarsVisual cleanup
CSSEmpty tagsConditional styling
CSSCenteringLayout alignment
CSSclamp()Responsive typography/sizing
CSSSmooth scrollingUX motion
CSSScroll marginAnchor positioning
JSclassList.toggle()State switching
HTMLTelephone & email linksDirect communication
CSSText selection highlightCustom branding
CSS:has()The relational selector
CSS::markerList bullet styling
JSIntl.NumberFormatLocalized currency/prices
HTMLinertDisabling subtree interaction
CSS:targetFragment-based styling
HTMLtranslate attributeInternationalization
CSSprefers-color-schemeDark/Light mode
CSSContainer size queriesComponent-based responsiveness
HTML<dialog> elementNative modals
CSStext-wrapImproved line breaking
HTML/CSSDescription list alignment<dl> layout
CSSaccent-colorNative form element branding
JS/CSSCustom Highlight APIProgrammatic text highlighting
CSSHover detectionInput-agnostic hover states
CSScolor-mix()Dynamic color blending
JSScroll snap eventsIntersection/Snap logic
BashSort directories by sizeFile system management
CSSlight-dark()Simplified color pairing
CSScontrast-color()Automatic accessibility
CSS@scopeLocalized CSS scoping
CSS:where()Zero-specificity selectors
CSSScroll-driven animationsMotion tied to scroll
CSSCarouselsNative sliding layouts
CSScorner-shapeNon-rectangular borders
CSSCustom functionsAdvanced CSS logic
CSSGrid LanesPrecise grid alignment
HTMLPopover APITransient UI elements
JSView Transitions APISeamless page morphing
CSSContainer style queriesStyling based on parent values
HTMLdetails nameExclusive accordion behavior
HTMLButton commandsDialog control
HTMLhidden=until-foundSearchable collapsed content

💻 Example Implementation

To give you a taste of these "post-its," here is a look at how a clamp() implementation might look:

/* Responsive font size: Min 1rem, Preferred 5vw, Max 2rem */
.title {
  font-size: clamp(1rem, 5vw, 2rem);
}

Web Dev Concept

No post-its found. (All content successfully loaded)