London is the capital of England.
Paris is the capital of France.
Tokyo is the capital of Japan.
``` **Using the class attribute on `London is the capital of England.
Paris is the capital of France.
Tokyo is the capital of Japan.
This is some important text.
``` **Multiple Classes.** HTML elements can belong to more than one class. To define multiple classes, separate the class names with a space, e.g. `Paris is the capital of France
``` **Using the class Attribute in JavaScript.** JavaScript can access elements with a specific class name by using the `getElementsByClassName()` method. [S1] ```javascript ``` > **Tip:** The `class` attribute can be used on **any** HTML element. [S1] > **Note:** The class name is case sensitive! [S1] **Chapter Summary.** [S1] - The HTML `class` attribute specifies one or more class names for an element. - Classes are used by CSS and JavaScript to select and access specific elements. - The `class` attribute can be used on any HTML element. - The class name is case sensitive. - Different HTML elements can point to the same class name. - JavaScript can access elements with a specific class name with the `getElementsByClassName()` method. ## π οΈ μ μ© μ¬λ‘ (Applied in summary) The shared `city` class (across headings, divs, and paragraphs), the multi-class `city main` heading, and the `getElementsByClassName("city")` hide-function are the canonical applied examples. No external project/commit applications found in the source. ## π» μ½λ ν¨ν΄ (Code patterns) Define and apply a class (HTML + CSS): ```html