diff --git a/files/en-us/web/html/applying_color/index.html b/files/en-us/web/html/applying_color/index.html index e0c2e9603606693..b346ef19113be1f 100644 --- a/files/en-us/web/html/applying_color/index.html +++ b/files/en-us/web/html/applying_color/index.html @@ -312,7 +312,7 @@
When you try to show it in Safari, it will not show properly. Because Safari doesn't support text-decoration: underline wavy #88ff88
.
Note: When you try to show it in Safari, it will not show properly. Because Safari doesn't support text-decoration: underline wavy #88ff88
.
Finally, the .boxRight
class describes the unique properties of the box that's drawn on the right. It's configured to float the box to the right so that it appears next to the previous box. Then the following colors are established:
{{EmbedLiveSample("Example_Picking_a_color", 525, 275)}}
On macOS, you indicate that you've finalized selection of the color by closing the color picker window.
+Note: On macOS, you indicate that you've finalized selection of the color by closing the color picker window.
When trying to decide upon a base color, you may find that browser extensions that let you select colors from web content can be particularly handy. Some of these are even specifically designed to help with this sort of work. For example, the website ColorZilla offers an extension (Chrome / Firefox) that offers an eyedropper tool for picking colors from the web. It can also take averages of the colors of pixels in various sized areas or even a selected area of the page.
The advantage to averaging colors can be that often what looks like a solid color is actually a surprisingly varied number of related colors all used in concert, blending to create a desired effect. Picking just one of these pixels can result in getting a color that on its own looks very out of place.
+Note: The advantage to averaging colors can be that often what looks like a solid color is actually a surprisingly varied number of related colors all used in concert, blending to create a desired effect. Picking just one of these pixels can result in getting a color that on its own looks very out of place.
When designing your palette, be sure to keep in mind that in addition to the colors these tools typically generate, you'll probably also need to add some core neutral colors such as white (or nearly white), black (or nearly black), and some number of shades of gray.
Usually, you are far better off using the smallest number of colors possible. By using color to accentuate rather than adding color to everything on the page, you keep your content easy to read and the colors you do use have far more impact.
+Note: Usually, you are far better off using the smallest number of colors possible. By using color to accentuate rather than adding color to everything on the page, you keep your content easy to read and the colors you do use have far more impact.
You should do at least basic research into {{interwiki("wikipedia", "color blindness")}}. There are several kinds; the most common is red-green color blindness, which causes people to be unable to differentiate between the colors red and green. There are others, too, ranging from inabilities to tell the difference between certain colors to total inability to see color at all.
The most important rule: never use color as the only way to know something. If, for example, you indicate success or failure of an operation by changing the color of a shape from white to green for success and red for failure, users with red-green color-blindness won't be able to use your site properly. Instead, perhaps use both text and color together, so that everyone can understand what's happening.
+Note: The most important rule: never use color as the only way to know something. If, for example, you indicate success or failure of an operation by changing the color of a shape from white to green for success and red for failure, users with red-green color-blindness won't be able to use your site properly. Instead, perhaps use both text and color together, so that everyone can understand what's happening.
For more information about color blindness, see the following articles:
diff --git a/files/en-us/web/html/attributes/autocomplete/index.html b/files/en-us/web/html/attributes/autocomplete/index.html index 5f40ad42ef03990..da6edabce7a13fd 100644 --- a/files/en-us/web/html/attributes/autocomplete/index.html +++ b/files/en-us/web/html/attributes/autocomplete/index.html @@ -31,7 +31,7 @@For more information, see the {{htmlattrxref("autocomplete", "form")}} attribute in {{HTMLElement("form")}}.
In order to provide autocompletion, user-agents might require <input>
/<select>
/<textarea>
elements to:
Note: In order to provide autocompletion, user-agents might require <input>
/<select>
/<textarea>
elements to:
name
and/or id
attributeAn invalid keyword and an empty string will be handled as the anonymous
keyword.
Prior to Firefox 83 the crossorigin
attribute was not supported for rel="icon"
there is also an open issue for Chrome.
Note: Prior to Firefox 83 the crossorigin
attribute was not supported for rel="icon"
there is also an open issue for Chrome.
help
keyword indicates that the linked to content provides context-sensitive help, providing information for the parent of the element defining the hyperlink, and its children. When used within <link>
, the help is for the whole document. When included with {{htmlelement('a')}} and {{htmlelement('area')}} and supported, the default {{cssxref('cursor')}} will be help
instead of pointer
.Valid with {{htmlelement('link')}}, the linked resource represents the icon, a resource for representing the page in the user interface, for the current document.
+Note: Valid with {{htmlelement('link')}}, the linked resource represents the icon, a resource for representing the page in the user interface, for the current document.
The most common use for the icon
value is the favicon:
If there are multiple <link rel="icon">
s, the browser uses their media
attribute, type
, and sizes
attributes to select the most appropriate icon. If several icons are equally appropriate, the last one is used. If the most appropriate icon is later found to be inappropriate, for example because it uses an unsupported format, the browser proceeds to the next-most appropriate, and so on.
Prior to Firefox 83 the crossorigin attribute was not supported for rel="icon"
there is also an open issue for Chrome.
Note: Prior to Firefox 83 the crossorigin attribute was not supported for rel="icon"
there is also an open issue for Chrome.
Note: Apple's iOS does not use this link type, nor the sizes
attribute, like others mobile browsers do, to select a webpage icon for Web Clip or a start-up placeholder. Instead it uses the non-standard apple-touch-icon
and apple-touch-startup-image
respectively.
Valid on the {{HTMLElement("a")}}, {{HTMLElement("area")}}, {{HTMLElement("form")}}, {{HTMLElement("link")}} elements, the license
value indicates that the hyperlink leads to a document describing the licensing information; that the main content of the current document is covered by the copyright license described by the referenced document. If not inside the {{HTMLElement("head")}} element, the standard doesn't distinguish between a hyperlink applying to a specific part of the document or to the document as a whole. Only the data on the page can indicate this.
Note: Valid on the {{HTMLElement("a")}}, {{HTMLElement("area")}}, {{HTMLElement("form")}}, {{HTMLElement("link")}} elements, the license
value indicates that the hyperlink leads to a document describing the licensing information; that the main content of the current document is covered by the copyright license described by the referenced document. If not inside the {{HTMLElement("head")}} element, the standard doesn't distinguish between a hyperlink applying to a specific part of the document or to the document as a whole. Only the data on the page can indicate this.
<link rel="license" href="#license">diff --git a/files/en-us/web/html/block-level_elements/index.html b/files/en-us/web/html/block-level_elements/index.html index 2dcaa6814bbbb89..a4e45426fc03c78 100644 --- a/files/en-us/web/html/block-level_elements/index.html +++ b/files/en-us/web/html/block-level_elements/index.html @@ -16,7 +16,7 @@
Browsers typically display the block-level element with a newline both before and after the element. You can visualize them as a stack of boxes.
A block-level element always starts on a new line and takes up the full width available (stretches out to the left and right as far as it can).
+Note: A block-level element always starts on a new line and takes up the full width available (stretches out to the left and right as far as it can).
The following example demonstrates the block-level element's influence:
diff --git a/files/en-us/web/html/element/dfn/index.html b/files/en-us/web/html/element/dfn/index.html index dd6948f96c56d7e..50d5062293fb7ce 100644 --- a/files/en-us/web/html/element/dfn/index.html +++ b/files/en-us/web/html/element/dfn/index.html @@ -73,7 +73,7 @@If the <dfn>
element has a title
attribute, it must contain the term being defined and no other text.
Note: If the <dfn>
element has a title
attribute, it must contain the term being defined and no other text.
<dfn>
elementsThese elements only include the global attributes.
The align
attribute is obsolete; don't use it.
Note: The align
attribute is obsolete; don't use it.
<hgroup>
should not be used because no assistive technology supports it, and as a result it has a detrimental effect on assistance for headings placed within it.
Warning: <hgroup>
should not be used because no assistive technology supports it, and as a result it has a detrimental effect on assistance for headings placed within it.
For more information see the Usage notes below.
The <hgroup>
element has been removed from the HTML5 (W3C) specification, but it still is in the WHATWG version of HTML. It is partially implemented in most browsers, though, so is unlikely to go away.
+
Note: The <hgroup>
element has been removed from the HTML5 (W3C) specification, but it still is in the WHATWG version of HTML. It is partially implemented in most browsers, though, so is unlikely to go away.
However, given that a key purpose of the <hgroup>
element is to affect how headings are displayed by the outline algorithm defined in the HTML specification—but the HTML outline algorithm is not implemented in any browsers—then the <hgroup>
semantics are in practice only theoretical.
So the HTML5 (W3C) specification provides advice on how to mark up Subheadings, subtitles, alternative titles and taglines without using <hgroup>
.
{{EmbedLiveSample('Value', 600, 40)}}
Note: The displayed date format will differ from the actual value
. The displayed date is formatted based on the locale of the user's browser, but the parsed value
is always formatted yyyy-mm-dd
.
Note: The displayed date format will differ from the actual value
— the displayed date is formatted based on the locale of the user's browser, but the parsed value
is always formatted yyyy-mm-dd
.
You can get and set the date value in JavaScript with the {{domxref("HTMLInputElement")}} value
and valueAsNumber
properties. For example:
For date
inputs, the value of step
is given in days; and is treated as a number of milliseconds equal to 86,400,000 times the step
value (the underlying numeric value is in milliseconds). The default value of step
is 1, indicating 1 day.
Specifying any
as the value for step
has the same effect as 1
for date
inputs.
Note: Specifying any
as the value for step
has the same effect as 1
for date
inputs.
In this section, we'll look at basic and then more complex uses of <input type="date">
, and offer advice on mitigating the browser support issue later (see {{anch("Handling browser support")}}).
Hopefully, over time browser support will become ubiquitous, and this problem will fade away.
+Note: Hopefully, over time browser support will become ubiquitous, and this problem will fade away.
This feature has no current browser implementations.
+Note: This feature has no current browser implementations.
Not only is the placeholder not accessible to screen readers, but once the user enters any text into the form control, or if the form control already has a value, the placeholder disappears. Browsers with automatic page translation features may skip over attributes when translating, meaning the placeholder
may not get translated.
Don't use the {{htmlattrxref("placeholder", "input", "", 1)}} attribute if you can avoid it. If you need to label an <input>
element, use the {{HTMLElement("label")}} element.
Note: Don't use the {{htmlattrxref("placeholder", "input", "", 1)}} attribute if you can avoid it. If you need to label an <input>
element, use the {{HTMLElement("label")}} element.
You should usually avoid including reset buttons in your forms. They're rarely useful, and are instead more likely to frustrate users who click them by mistake (often while trying to click the submit button).
+Note: You should usually avoid including reset buttons in your forms. They're rarely useful, and are instead more likely to frustrate users who click them by mistake (often while trying to click the submit button).