From d36806a06db4396f5af3a2f59c618f7988470ef2 Mon Sep 17 00:00:00 2001
From: CGS-Jack-Bashford <37096442+CGS-Jack-Bashford@users.noreply.github.com>
Date: Sun, 4 Nov 2018 11:33:22 +1100
Subject: [PATCH] Add example and reason why is not commonly used (#20837)
* Add example and reason why is not commonly used
Expanded from stub - added an example, an example of the simplified version (.class selector) and added some external references
* removed w3schools links
---
.../selectors/attribute/class-equals/index.md | 19 +++++++++++++------
1 file changed, 13 insertions(+), 6 deletions(-)
diff --git a/guide/english/css/selectors/attribute/class-equals/index.md b/guide/english/css/selectors/attribute/class-equals/index.md
index beae14c0ba..2aa37f41d5 100644
--- a/guide/english/css/selectors/attribute/class-equals/index.md
+++ b/guide/english/css/selectors/attribute/class-equals/index.md
@@ -2,14 +2,21 @@
title: Class Equals
---
## Class Equals
+To select an item with a class attribute, you use the following selector:
-This is a stub. Help our community expand it.
+```css
+p[class="happy"] {
+ color: yellow;
+}
+```
-This quick style guide will help ensure your pull request gets accepted.
+This selector is not commonly used, as there is a general class selector. We can rewrite the above selector like this:
-
+```css
+p.happy {
+ color: yellow;
+}
+```
#### More Information:
-
-
-
+https://developer.mozilla.org/en-US/docs/Web/CSS/Attribute_selectors