HTML wbr

Created By: chatGPT

The <wbr> tag in HTML stands for word break opportunity. It allows developers to suggest potential points where a line break could occur within a word in order to improve text wrapping within a container. This is particularly useful for long words or URLs that might otherwise extend beyond their container's width and break the layout.
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>WBR Example</title>
    <style>
        .container {
            width: 200px;
            border: 1px solid #000;
            overflow-wrap: break-word;
        }
    </style>
</head>
<body>
    <div class="container">
        Here is a long word: supercalifragilisticexpialidocious<wbr>and some text after it.<br>
        And here is a long URL: https://www.example.com/some/really/long/path/to/resource<wbr>.html
    </div>
</body>
</html>
Introduction And SetupHeadTitleMetaLinkStyleScriptBodyHeaderNavSectionArticleAsideFooterH1H2H3H4H5H6PBlockquoteOlUlLiAImgTableTrTdThCaptionFormInputTextareaButtonSelectOptionLabelFieldsetLegendCanvasSvgVideoAudioEmbedObjectIframeDivSpanStrongEmSmallSubSupMarkCiteDfnAbbrTimeDataVarCodeKbdSampQCiteRubyRbRtRtcRpBdiBdoWbrDatalistOutputProgressMeterDetailsSummaryTemplatePictureSourceTrackMeta CharsetMeta NameMeta ContentMeta ViewportMeta Http EquivLink RelLink HrefScript SrcScript AsyncStyle TypeBody OnloadIdClassStyleSrcHrefAltTitleValueNameTypePlaceholderDisabledReadonlyCheckedActionMethodForMaxlengthMinlengthAutocompleteTargetRelData *WidthHeightLangTabindexAria *DraggableHiddenAutofocusRequiredDownload