Favorites

HTML <selectedcontent> Tag

☕
Enjoying this site?

Help keep it running with a small coffee donation. Every bit of support is appreciated!

Buy us a coffee
<selectedcontent>
HTML TagThis tag is supported in some modern browsers, but not all.
Updated 22nd November 2026

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

Permitted Parents
A <button> that is the first child of a <select> element
Content
Nothing (its content is a clone of the selected option, created by the browser)
Start/End Tags
Start tag: required, End tag: required

Example

<style>
select, ::picker(select) { appearance: base-select; }
</style>
<select>
<button><selectedcontent></selectedcontent></button>
<option>&#127822; Apple</option>
<option>&#127820; Banana</option>
<option>&#127826; Cherry</option>
</select>
Open in editor

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.

This tag is supported in some modern browsers, but not all.

Desktop

Chrome
Edge
Firefox
Opera
Safari

Tablets & Mobile

Chrome Android
Firefox Android
Opera Android
Safari iOS
Samsung Internet
Android WebView
-
Supported Unknown Not supported
☕
Enjoying this site?

Help keep it running with a small coffee donation. Every bit of support is appreciated!

Buy us a coffee