<span style = "font-size: 70px;">Hi, I am *Name*</span></br>
<span style = "font-size: 40px;">*Occupation*</br>
*Facts about me*
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?
Comment posted by Wais Kamal
Vertical or horizontal center?
Comment posted by rabin adhikari
Do you want to center the horizontally ?
Comment posted by How do I write a good answer?
Welcome to StackOverflow. While this code may solve the question, including an explanation of how and why this solves the problem would really help to improve the quality of your post, and probably result in more up-votes. Remember that you are answering the question for readers in the future, not just the person asking now. Please edit your answer to add explanations and give an indication of what limitations and assumptions apply. Have a look here →