FIND YOUR NEXT FEW LINES

Results for “HTML”

Small, practical examples. Search by task or narrow things down below.

503 snippets foundClear filters
CSSFlexbox alignment

Change visual order without changing DOM order

CSS: Order changes flex painting positions while keyboard and reading order still follow the document.

CSS✓ Tested
jQueryForm serialization & state

Check native form validity before proceeding

jQuery: Use the native checkValidity API from the selected form.

jQuery✓ Tested
jQueryCollections & styling

Check whether any selected element matches

jQuery: is returns a Boolean without changing the selection.

jQuery✓ Tested
CSSGetting Started

Choose a list-marker style

CSS: Learn how to choose a list-marker style in a complete browser example.

CSS✓ Tested
AngularSignals & state

Choose an equality function for signal values

Choose an equality function for signal values with a standalone Angular component and explicit browser behavior.

Angular✓ Tested
AngularGetting Started

Choose template content with @switch

Choose template content with @switch with a standalone Angular component and explicit browser behavior.

Angular✓ Tested
CSSResponsive conditions & sizing

Choose the smaller of a fixed and viewport-relative size

CSS: Min selects whichever supplied length is smaller at the current viewport.

CSS✓ Tested
CSSPositioning & stacking

Choose which overlapping box receives a pointer

CSS: Z-index controls the stack level of these positioned sibling elements.

CSS✓ Tested
jQueryGetting Started

Clear a container’s contents

jQuery: Learn how to clear a container’s contents in a complete browser example.

jQuery✓ Tested
jQueryDOM & classes

Clear an element

Remove child content while keeping the jQuery-selected container.

jQuery✓ Tested
CSSBox dimensions & overflow

Clip content that exceeds a fixed-height box

CSS: Overflow hidden clips the painted content while the full content remains in the DOM.

CSS✓ Tested
jQueryInsertion & wrapping

Clone markup without sharing its identity

jQuery: clone creates a separate node; change duplicated IDs before inserting.

jQuery✓ Tested