jump to navigation

Today’s basic HTML question August 4, 2008 11:07 pm

Posted by Doug McCaughan in : HTML, Programming, Technology , trackback

Can <optgroup> be nested within <optgroup>? Is the following example legal?

<select>
   <optgroup label="A">
      <optgroup label="1">
            <option>Outlinepart1</option>
      </optgroup>
   </optgroup>
</select>

Answered! Optgroups may NOT be nested per HTML4 specification.

Comments after advertisement

Comments»

no comments yet - be the first?


trackback