Hyphenation
✓ Published0🌍 Public
AAlexZ33
Last edited Dec 10, 2019
Created on Dec 10, 2019
This example demonstrates how CSS hyphenation automatically breaks a long quotation to fit a narrow text column, creating a justified, evenly spaced block of text. The HTML contains a single sentence from Oscar Wilde, while the CSS sets a fixed width, serif typography, and text justification. The `hyphens: auto` property, combined with the `lang` attribute implied by the content, enables automatic hyphenation. The JavaScript file only contains a commented-out alert, so no interactive behavior occurs. The dabblet is styled using standard CSS without external libraries.
AI-generated description