Our dynamic <select> tag isn’t complete...

image with no caption

The HTML <select> tag accepts many more tag attributes than just name and size:

Core attributes: id, class, style, and title

Internationalization attributes: lang and dir

Event attributes:

onclick, ondblclick, onmouseup, onmouseup, onmouseover, onmousemove, onmouseout, onkeypress, onkeyup, and onkeydown

Form attributes:

name, disabled, multiple, size, tabindex, onfocus, onblur, and onchange

Note

You can use these to make list boxes and list menus.

image with no caption

Get Head First Servlets and JSP, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.