Author: Claire Broadley
Claire is seasoned technical writer, editor, and HTML enthusiast. She writes for HTML.com and runs a content agency, Red Robot Media.
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
<script type="">
Specifies the media type of the script.<script src="">
Specifies the URL of an external script.<script defer>
The defer element of <script> allows a script to load, but pauses the execution of the script until the page… Read More...<script language="">
The language attribute of <script> was intended as a way to define the scripting language in use. This was never… Read More...<script for="">
The for attribute of <script> was only supported by Internet Explorer, and is therefore non-standard. We do not recommend its… Read More...<select name="">
Naming Selection Items The name attribute of <select> means you can easily use your selection field with JavaScript. For more… Read More...<select size="">
Specifies the size of a select item.<select readonly>
<readonly> is not valid in HTML. Use the disabled attribute. Claire Broadley Claire is seasoned technical writer, editor, and HTML… Read More...<select disabled>
Disables a drop-down list.<select language="">
The language attribute of <select> is not valid HTML. Instead, use <script> with a valid type attribute. Claire Broadley Claire… Read More...<select onChange="">
Triggers an event when the selection is changed.<select tabindex="">
Defines the order of selection when the tab key is pressed.<select onFocus="">
Triggers an event when a select item receives focus.