HTML <selectedcontent> Tag
Description
The <selectedcontent> element displays a copy of the currently selected option's content inside the button of a customizable <select> element. It is placed inside a <button> that is the first child of the <select>, and the browser keeps it in sync: whenever the selection changes, the contents of the selected <option> (including images or icons, not just text) are cloned into it.
It is only used with the customizable select, which is enabled with the CSS appearance: base-select declaration on the <select> and its ::picker(select). Because the content is cloned, you can style it differently from the options, for example hiding a description that is only meant to appear in the drop-down list.
Properties
Example
Attributes
None
Global Attributes
The <selectedcontent> tag also supports the Global Attributes in HTML5
Event Attributes
The <selectedcontent> tag also supports the Event Attributes in HTML5
Browser Support
The following information will show you the current browser support for the HTML <selectedcontent> tag. Hover over a browser icon to see the version that first introduced support for this HTML tag.
Desktop





Tablets & Mobile





