Ask coding questions

← Back to all posts
How do I align these text? Any help is appreciate [HTML]
MatthewADev (18)

So I code in python mainly but I'm now learning html and I need help with aligning this.

Answered by ch1ck3n (2069) [earned 5 cycles]
View Answer
Comments
hotnewtop
ch1ck3n (2069)
<!DOCTYPE html>
<title></title>
<link rel="shortcut icon" href="nova.favicon.ico" type="image/x-icon" />
<link rel="stylesheet" href="style.css">
<link rel="preconnect" href="https://fonts.gstatic.com">
<link href="https://fonts.googleapis.com/css2?family=Odibee+Sans&display=swap" rel="stylesheet">
<script src="script.js"></script>
 <h1 class='header'>Welcome to my website, Here are my socials! :D</h1>
  <p class='header'>TikTok: @matthewzip</p>
   <p class='header'>Replit: @MatthewADev</p>

<center>
  <a href="https://www.tiktok.com/@matthewzip/">Tiktok</a><br>
  <a href="https://www.replit.com/@MatthewADev/">Replit</a>
</center>
ch1ck3n (2069)

@MatthewADev if you need any help just ping me

@ch1ck3n

ch1ck3n (2069)

@MatthewADev ooh
im making a help button

just press it when you need help

ch1ck3n (2069)

Where do you want to align it

MatthewADev (18)

@ch1ck3n i want it to be centered
example
TikTok
Replit
and my rn is TikTok Replit