From 754bbf7a25a8dda49b5d08ef0d0443bbf5af0e36 Mon Sep 17 00:00:00 2001 From: Craig Jennings Date: Sun, 7 Apr 2024 13:41:34 -0500 Subject: new repository --- devdocs/html/global_attributes%2Fclass.html | 57 +++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 devdocs/html/global_attributes%2Fclass.html (limited to 'devdocs/html/global_attributes%2Fclass.html') diff --git a/devdocs/html/global_attributes%2Fclass.html b/devdocs/html/global_attributes%2Fclass.html new file mode 100644 index 00000000..26a5c529 --- /dev/null +++ b/devdocs/html/global_attributes%2Fclass.html @@ -0,0 +1,57 @@ +

class

The class global attribute is a space-separated list of the case-sensitive classes of the element. Classes allow CSS and JavaScript to select and access specific elements via the class selectors or functions like the DOM method document.getElementsByClassName.

+

Try it

+
+

Though the specification doesn't put requirements on the name of classes, web developers are encouraged to use names that describe the semantic purpose of the element, rather than the presentation of the element. For example, attribute to describe an attribute rather than italics, although an element of this class may be presented by italics. Semantic names remain logical even if the presentation of the page changes.

+
+

Specifications

+
+ + +
Specification
HTML Standard
# global-attributes:classes-2
+

Browser compatibility

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
DesktopMobile
ChromeEdgeFirefoxInternet ExplorerOperaSafariWebView AndroidChrome AndroidFirefox for AndroidOpera AndroidSafari on IOSSamsung Internet
class1121Yes15≤44.418414≤3.21.0
+

See also

+
+

+ © 2005–2023 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
+ https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/class +

+
-- cgit v1.2.3