This is my HTML code:
span {
font-family: 'Lovehearts XYZ';
text-align: center;
}
@font-face {
font-family: 'Lovehearts XYZ';
src: url('LoveheartsXYZ.woff2') format('woff2'),
url('LoveheartsXYZ.woff') format('woff');
font-weight: normal;
font-style: normal;
font-display: swap;
}
<span style = "font-size: 70px;">Hi, I am *Name*</span></br>
<span style = "font-size: 40px;">*Occupation*</br>
*Hobbies*</br>
*Facts about me*
</span>
As you can see, I used two "spans" but both of them are in different font sizes. I want this chunk of texts to be placed at the center of the webpage. How can I modify the code to do that?