Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes #93 - Delete optgroup element and add HTML code #94

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

cevdetardaharan
Copy link

@cevdetardaharan cevdetardaharan 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.

@cevdetardaharan
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