You are here:
Headings (H1, H2)
The h1 element creates a main heading and the h2
element creates a sub-heading for a document.

Use more general search terms.
Select fewer filters to broaden your search.
You are here:
The h1 element creates a main heading and the h2
element creates a sub-heading for a document.
| Available in Lightning Experience in Enterprise and Unlimited Editions that have Consumer Goods Cloud enabled. |
These attributes are supported by the h1 and h2
elements:
| Attribute | Description | Values / Pattern | Required |
|---|---|---|---|
| bold | Displays the selected text in bold face. | Boolean | No |
| italics | Displays the selected text in italic face. | Boolean | No |
| alignment | Aligns the selected text to the left, or to the right, or to the center. This attribute can have the following values:
|
String | No |
The h1 and h2 elements can contain a child element,
text.
<!-- left out details for brevity -->
<h1 alignment="left" bold="true">Order Confirmation</h1>
<h2 alignment="left" bold="false"> Order Details</h2> 
We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.