1e41f4b71Sopenharmony_ci# Adding Title and Paragraph Text
2e41f4b71Sopenharmony_ci
3e41f4b71Sopenharmony_ciThe **\<text>** component is most commonly used to display text in title and paragraph areas. You can set attributes and styles for a **\<text>** component and add the text to be displayed between the **\<text>** and **\</text>** tags. For details about the attributes and styles, see [text](../reference/apis-arkui/arkui-js/js-components-basic-text.md). The following is an example of adding title and paragraph text on a page:
4e41f4b71Sopenharmony_ci
5e41f4b71Sopenharmony_ci
6e41f4b71Sopenharmony_ci```html
7e41f4b71Sopenharmony_ci<!-- xxx.hml -->
8e41f4b71Sopenharmony_ci<div class="container">
9e41f4b71Sopenharmony_ci  <text class="title-text">{{headTitle}}</text>
10e41f4b71Sopenharmony_ci  <text class="paragraph-text">{{paragraphFirst}}</text>
11e41f4b71Sopenharmony_ci  <text class="paragraph-text">{{paragraphSecond}}</text>
12e41f4b71Sopenharmony_ci</div>
13e41f4b71Sopenharmony_ci```
14e41f4b71Sopenharmony_ci
15e41f4b71Sopenharmony_ci
16e41f4b71Sopenharmony_ci```css
17e41f4b71Sopenharmony_ci/* xxx.css */
18e41f4b71Sopenharmony_ci.container {
19e41f4b71Sopenharmony_ci  flex-direction: column;
20e41f4b71Sopenharmony_ci  margin-top: 20px;
21e41f4b71Sopenharmony_ci  margin-left: 30px;
22e41f4b71Sopenharmony_ci}
23e41f4b71Sopenharmony_ci.title-text {
24e41f4b71Sopenharmony_ci  color: #1a1a1a;
25e41f4b71Sopenharmony_ci  font-size: 50px;
26e41f4b71Sopenharmony_ci  margin-top: 40px;
27e41f4b71Sopenharmony_ci  margin-bottom: 20px;
28e41f4b71Sopenharmony_ci  font-weight: 700;
29e41f4b71Sopenharmony_ci}
30e41f4b71Sopenharmony_ci.paragraph-text {
31e41f4b71Sopenharmony_ci  width: 95%;
32e41f4b71Sopenharmony_ci  color: #000000;
33e41f4b71Sopenharmony_ci  font-size: 35px;
34e41f4b71Sopenharmony_ci  line-height: 60px;
35e41f4b71Sopenharmony_ci}
36e41f4b71Sopenharmony_ci```
37e41f4b71Sopenharmony_ci
38e41f4b71Sopenharmony_ci
39e41f4b71Sopenharmony_ci```js
40e41f4b71Sopenharmony_ci// xxx.js
41e41f4b71Sopenharmony_ciexport default {
42e41f4b71Sopenharmony_ci  data: {
43e41f4b71Sopenharmony_ci    headTitle: 'Capture the Beauty in Moment',
44e41f4b71Sopenharmony_ci    paragraphFirst: 'Capture the beauty of light during the transition and fusion of ice and water. At the instant of movement and stillness, softness and rigidity, force and beauty, condensing moving moments.',
45e41f4b71Sopenharmony_ci    paragraphSecond: 'Reflecting the purity of nature, the innovative design upgrades your visual entertainment and ergonomic comfort. Effortlessly capture what you see and let it speak for what you feel.',
46e41f4b71Sopenharmony_ci  },
47e41f4b71Sopenharmony_ci}
48e41f4b71Sopenharmony_ci```
49e41f4b71Sopenharmony_ci
50e41f4b71Sopenharmony_ci ![en-us_image_0000001118642600](figures/en-us_image_0000001118642600.PNG) 
51