Skip to content

Conversation

cevdetta
Copy link

@cevdetta cevdetta commented Oct 15, 2024

Fixes #93
As I mentioned in here Delete opgroup element, it's unnecessary and should be deleted, I've added new HTML code that has select>optgroup, I didn't delete optgroup but I think it should be deleted to.

@cevdetta
Copy link
Author

As you can see on MDN: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/optgroup

<label for="dino-select">Choose a dinosaur:</label>
<select id="dino-select">
  <optgroup label="Theropods">
    <option>Tyrannosaurus</option>
    <option>Velociraptor</option>
    <option>Deinonychus</option>
  </optgroup>
  <optgroup label="Sauropods">
    <option>Diplodocus</option>
    <option>Saltasaurus</option>
    <option>Apatosaurus</option>
  </optgroup>
</select>

and at the end it talks about which element or elements can be parent or child and it's basically like this: select>optgroup>option.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Remove optgroup element
1 participant