devdocs icon indicating copy to clipboard operation
devdocs copied to clipboard

new alias for the select tag in html

Open CyberReaper00 opened this issue 2 months ago • 2 comments

Feature request

Add an alias for the select tag and the option tag in the html documentation to dropdown

Summary

I was looking for a way to make a dropdown list but when i searched for dropdown i couldnt find it, it was not available in html, css or the js docs and so i had to ask AI how to do that and then it told me that you need the select tag and the option tag to make that list

The point of me using the docs, which i use primarily, is so that i can work without any distractions, if i need to leave the site and require using the internet anyway to search for something, when i dont know what its called, then the use for the offline docs deteriorates

Having an alias set will help greatly in searchability for items that i dont know the proper names of

Im sure there are many cases, keywords and documentations where this could be greatly useful, but for now this is the only one i have found

Examples

When i search for dropdown, an alias should be set that shows the select tag and the option tag section in the html documentation

CyberReaper00 avatar Oct 15 '25 16:10 CyberReaper00

Hm, the idea of devdocs is to index docs provided by upstream projects. MDN itself does not have any formal link from "dropdown" to "select", only its full-text search finds the latter: https://developer.mozilla.org/en-US/search?q=dropdown. Devdocs does not feature full-text search. I don't see an elegant and maintainable way to add aliases for possible search keywords of the HTML docs. Maybe "dropdown" could be added to the HTML element list in https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements. What do you think?

simon04 avatar Oct 19 '25 08:10 simon04

I dont really know what you're trying to say here,

Maybe "dropdown" could be added to the HTML element list in https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements. What do you think?

If you're saying that we should

  • add another element to html called dropdown then, i have no idea how that would even be possible
  • add the alias dropdown to that page so that it automatically appears for users in devdocs, if mdn allows for edits to their page by the community, then i guess anything would be better than nothing and that sounds pretty good
  • add the alias to the docs while the data is being exported from the upstream docs then, i would say thats pretty good as well

Please let me know how far i was from what you actually wanted to say

CyberReaper00 avatar Oct 21 '25 14:10 CyberReaper00