HTML5ANDCSS3 logoHTML5ANDCSS3Tools and Tutorials
  • Insights
  • Verify Certificate
HTML5ANDCSS3 logoHTML5ANDCSS3Tools and Tutorials
HTML5ANDCSS3 logoHTML5ANDCSS3Tools and Tutorials

HTML5andCSS3.org helps developers learn modern frontend skills with practical tutorials, production-ready snippets, and fast web tools built for everyday coding.

Quick Links

  • About Us
  • Contact Us
  • Privacy Policy
  • Copyright
  • Disclaimer

Top Tools

  • Try It Editor
  • JSON Formatter
  • CSS Minifier
  • HTML Minifier
  • Base64 Encoder / Decoder

Contact

  • business@html5andcss3.org
Newsletter

Learn at your own pace, practice with useful tools, and build websites you're proud of.

© 2011-2026 html5andcss3.org. All rights reserved.

How to Use

HTML Tags

HTML Tags

HTML <!DOCTYPE> TagHTML <html> TagHTML <head> TagHTML <title> TagHTML <body> TagHTML <base> TagHTML <link> TagHTML <meta> TagHTML <style> TagHTML <script> TagHTML <h1 to h6> TagHTML <hgroup> TagHTML <p> TagHTML <br> TagHTML <wbr> TagHTML <hr> TagHTML <pre> TagHTML <b> TagHTML <strong> TagHTML <i> TagHTML <em> TagHTML <mark> TagHTML <small> TagHTML <del> TagHTML <ins> TagHTML <sub> TagHTML <sup> TagHTML <u> TagHTML <blockquote> TagHTML <q> TagHTML <cite> TagHTML <abbr> TagHTML <address> TagHTML <bdo> TagHTML <bdi> TagHTML <a> TagHTML <nav> TagHTML <ul> TagsHTML <menu> TagHTML <ol> TagHTML <dl> TagHTML <img> TagHTML <figure> TagHTML <figcaption> TagHTML <audio> TagHTML <video> TagHTML <source> TagHTML <track> TagHTML <embed> TagHTML <object> TagHTML <param> Tag (Obsolete)HTML <picture> TagHTML <canvas> TagHTML <map> TagHTML <area> TagHTML <table> TagHTML <caption> TagHTML <thead> TagHTML <tbody> TagHTML <tfoot> TagHTML <tr> TagHTML <th> TagHTML <td> TagHTML <col> TagHTML <colgroup> TagHTML <form> TagHTML <input> TagHTML <textarea> TagHTML <button> TagHTML <select> TagHTML <selectedcontent> TagHTML <option> TagHTML <optgroup> TagHTML <label> TagHTML <fieldset> TagHTML <legend> TagHTML <datalist> TagHTML <output> TagHTML <meter> TagHTML <progress> TagHTML <header> TagHTML <footer> TagHTML <article> TagHTML <section> TagHTML <aside> TagHTML <main> TagHTML <search> TagHTML <details> TagHTML <summary> TagHTML <dialog> TagHTML <time> TagHTML <noscript> TagHTML <slot> TagsHTML <template> TagHTML <shadow> Tag (Obsolete)HTML <center> TagHTML <font> TagHTML <big> TagHTML <strike> TagHTML <tt> TagHTML <acronym> TagHTML <applet> TagHTML <frame> TagHTML <frameset> TagHTML <noframes> TagHTML <marquee> TagHTML <blink> TagHTML <s> TagHTML <var> TagHTML <kbd> TagHTML <samp> TagHTML <code> TagHTML <dfn> TagHTML <div> TagHTML <span> TagHTML Comment TagHTML <data> TagHTML Ruby Annotations: <ruby>, <rt> and <rp>HTML <svg> TagHTML <basefont> Tag
  1. Home
  2. /
  3. Tutorials
  4. /
  5. HTML Tutorial
  6. /
  7. HTML <selectedcontent> Tag

HTML Tags

HTML <selectedcontent> Tag

Learn how the experimental HTML <selectedcontent> tag displays the selected option inside a customizable select button.

The <selectedcontent> tag displays a clone of the currently selected <option> inside the button of a customizable <select>.
This is a newer, experimental element with limited and evolving browser support. Use it as progressive enhancement and verify compatibility before relying on it in production.

Syntax

html

<select>
  <button>
    <selectedcontent></selectedcontent>
  </button>

  <option value="html">HTML</option>
  <option value="css">CSS</option>
</select>

Attributes

AttributeDescription
classSpecifies one or more class names for CSS styling.
idDefines a unique identifier for the element.
styleAdds inline CSS styles.
titleProvides additional information as a tooltip when hovered.

Example

Compatibility notice: This example uses customizable-select features that may not work in every browser. In unsupported browsers, keep the underlying <select> usable as a standard form control.

html

<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Selectedcontent Tag Example</title>
  <style>
    select,
    ::picker(select) {
      appearance: base-select;
    }

    select {
      min-width: 260px;
      border: 2px solid #29AB87;
      border-radius: 8px;
      padding: 8px;
      font: inherit;
    }

    select > button,
    selectedcontent,
    option {
      display: flex;
      align-items: center;
      gap: 10px;
    }

    option {
      padding: 10px;
    }

    option::checkmark {
      display: none;
    }

    .badge {
      display: inline-grid;
      width: 32px;
      height: 32px;
      place-items: center;
      border-radius: 6px;
      background-color: #e7f8f3;
      color: #007a96;
      font-weight: bold;
    }

    selectedcontent .description {
      display: none;
    }
  </style>
</head>
<body>
  <h1>Choose a Tutorial</h1>

  <label for="tutorial">Tutorial:</label>
  <select id="tutorial" name="tutorial">
    <button>
      <selectedcontent></selectedcontent>
    </button>

    <option value="html" selected>
      <span class="badge">H</span>
      <span>HTML</span>
      <small class="description">Structure webpages</small>
    </option>

    <option value="css">
      <span class="badge">C</span>
      <span>CSS</span>
      <small class="description">Style webpages</small>
    </option>

    <option value="javascript">
      <span class="badge">JS</span>
      <span>JavaScript</span>
      <small class="description">Add interactivity</small>
    </option>
  </select>
</body>
</html>

Browser Support

Chrome
Edge
Firefox
Safari
Opera
IE9+
Yes (135+)Yes (Chromium)NoNoYes (Chromium)No

Browser support is still evolving. Current compatibility data reports support in Chrome 135 and later and related Chromium-based browsers, but not in Firefox, Safari, or Internet Explorer. Check current compatibility data before production use.

Notes

  • Treat <selectedcontent> as progressive enhancement because it is experimental and not yet available across all major browser engines.
  • Place it inside a <button> that is the first child of the related <select>.
  • The <selectedcontent> element should be the button's only child, followed by the select's <option> elements.
  • When the selection changes, the browser replaces its contents with a clone of the newly selected option's DOM content.
  • Content inside the select button is inert, so controls inside the cloned content cannot be focused or activated.
  • Changing the selected option's child content dynamically does not necessarily refresh the existing clone until the selection changes; update carefully in JavaScript frameworks.
  • Use appearance: base-select on the select and its ::picker(select) pseudo-element to opt into customizable-select rendering.
  • Keep a functional native <select> experience as the fallback for unsupported browsers.
  • Both the opening and closing tags are required.

Conclusion

The <selectedcontent> tag enables rich, styleable selected-option content in customizable select controls.
Because the element is new and support is still changing, use it with progressive enhancement, a usable fallback, and up-to-date browser testing.

PreviousHTML <select> TagNextHTML <option> Tag