-
Notifications
You must be signed in to change notification settings - Fork 22.9k
Closed
Labels
Content:HTMLHypertext Markup Language docsHypertext Markup Language docs
Description
MDN URL
https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/input/color
What specific section or headline is this issue about?
"JavaScript" (#javascript)
What information was incorrect, unhelpful, or incomplete?
The line:
const defaultColor = "blue";
looks wrong. Earlier in the page, there is a specific note:
Setting the value to anything that isn't a valid, fully-opaque, RGB color in hexadecimal notation will result in the value being set to #000000. In particular, you can't use CSS's standardized color names
And the line above should have no effect. For the intended effect, it should probably be:
const defaultColor = "#00f";
What did you expect to see?
const defaultColor = "#00f";
Do you have any supporting links, references, or citations?
No response
Do you have anything more you want to share?
No response
MDN metadata
Page report details
- Folder:
en-us/web/html/reference/elements/input/color
- MDN URL: https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/input/color
- GitHub URL: https://github.com/mdn/content/blob/main/files/en-us/web/html/reference/elements/input/color/index.md
- Last commit: f2d281d
- Document last modified: 2025-08-06T09:01:21.000Z
Metadata
Metadata
Assignees
Labels
Content:HTMLHypertext Markup Language docsHypertext Markup Language docs