I want to center align three links (anchor tags) I have in my page.
I've tried doing this in a css file:
a {
text-align: center;
}
but it doesn't work, nor did I find anything about how this should be done.
this is my html:
<!DOCTYPE html>
<html lang="en">
<head>
<link href="styles.css" rel="stylesheet">
<title>homepage</title>
</head>
<body>
<h1 id="head_heading">This is a webpage about Thunder_Coder</h1>
<p>You may have not known, but Thunder_Coder is mostly interested in two things: music and programming. <br>You may follow any of the links on the bottom to see more about Thunder_Coder, and about Thunder_Coders interests</p>
<a class="text-center" href="music.html">Music</a>
<a class="text-center" href="programming.html">Programming</a>
<a class="text-center" href="about.html">About Thunder_coder</a>
</body>
</html>