Deprecated in HTML5. Do not use.

<select language=””>

Disclosure: Your support helps keep the site running! We earn a referral fee for some of the services we recommend on this page. Learn more

Sharing is caring!

Attribute of
The Role Of In HTML Forms (To Create Drop-Down Lists)

The language attribute of <select> is not valid HTML. Instead, use <script> with a valid type attribute.

Claire is seasoned technical writer, editor, and HTML enthusiast. She writes for HTML.com and runs a content agency, Red Robot Media.