diff --git a/files/en-us/learn_web_development/core/styling_basics/handling_conflicts/index.md b/files/en-us/learn_web_development/core/styling_basics/handling_conflicts/index.md index ad6904e1bcbb631..f8e2b8826925882 100644 --- a/files/en-us/learn_web_development/core/styling_basics/handling_conflicts/index.md +++ b/files/en-us/learn_web_development/core/styling_basics/handling_conflicts/index.md @@ -73,7 +73,7 @@ h1 { [Specificity](/en-US/docs/Web/CSS/CSS_cascade/Specificity) is an algorithm that the browser uses to decide which property value is applied to an element. If multiple rules have different selectors that set different values for the same property and target the same element, specificity decides the property value that gets applied to the element. Specificity is basically a measure of how specific a selector's selection will be: -- An type (element) selector is less specific; it will select all elements of that type that appear on a page, so it has less weight. Pseudo-element selectors have the same specificity as regular element selectors. +- A type (element) selector is less specific; it will select all elements of that type that appear on a page, so it has less weight. Pseudo-element selectors have the same specificity as regular element selectors. - A class selector is more specific; it will select only the elements on a page that have a specific `class` attribute value, so it has more weight. Attribute selectors and pseudo-classes have the same weight as a class. - An ID selector is even more specific — it only selects a single element with a specific `id` value. It therefore has even more weight. diff --git a/files/en-us/web/api/passwordcredential/passwordcredential/index.md b/files/en-us/web/api/passwordcredential/passwordcredential/index.md index d2420f300428bca..206d1a795558cb4 100644 --- a/files/en-us/web/api/passwordcredential/passwordcredential/index.md +++ b/files/en-us/web/api/passwordcredential/passwordcredential/index.md @@ -10,10 +10,7 @@ browser-compat: api.PasswordCredential.PasswordCredential {{APIRef("Credential Management API")}}{{SeeCompatTable}}{{SecureContext_Header}} -The **`PasswordCredential()`** -constructor creates a new {{domxref("PasswordCredential")}} object. In -supporting browsers, an instance of this class may be passed the `credential` -from the `init` object for global {{domxref("Window/fetch", "fetch()")}}. +The **`PasswordCredential()`** constructor creates a new {{domxref("PasswordCredential")}} object. ## Syntax @@ -40,9 +37,9 @@ Either of the following: - : A string representing the credential password. - `form` - - : A reference to an {{domxref("HTMLFormElement")}} with appropriate input fields. The - form should, at the very least, contain an id and password. It could also require a - CSRF token. + - : A reference to an {{domxref("HTMLFormElement")}} with appropriate input fields. + The form should, at the very least, contain an id and password. + It could also require a CSRF token. ### Exceptions @@ -51,8 +48,7 @@ Either of the following: ## Examples -This example shows how to set up an {{domxref("HTMLFormElement")}} to capture data -which we'll use to create a {{domxref("PasswordCredential")}} object. +This example shows how to set up an {{domxref("HTMLFormElement")}} to capture data which we'll use to create a {{domxref("PasswordCredential")}} object. Starting with the form element. @@ -66,9 +62,7 @@ Starting with the form element. ``` -Then, a reference to this form element, using it to create -a {{domxref("PasswordCredential")}} object, and storing it in the browser's password -system. +Then, a reference to this form element, using it to create a {{domxref("PasswordCredential")}} object, and storing it in the browser's password system. ```js const form = document.querySelector("#form"); diff --git a/files/en-us/web/html/reference/elements/selectedcontent/index.md b/files/en-us/web/html/reference/elements/selectedcontent/index.md index 0034cfe1699b73c..59605ac430ed50f 100644 --- a/files/en-us/web/html/reference/elements/selectedcontent/index.md +++ b/files/en-us/web/html/reference/elements/selectedcontent/index.md @@ -10,47 +10,43 @@ sidebar: htmlsidebar {{SeeCompatTable}} -The **``** [HTML](/en-US/docs/Web/HTML) element can be used to display the content of the currently selected `