What am I doing wrong when trying to center this a tag?
I cannot apply the text-align property to an anchor tag, but i can apply it to paragraph, div, and other tags.
My HTML code is as follows
<!DOCTYPE html>
<html>
<head>
<title>Centering An A Tag</title>
<link="theme.css" rel="stylesheet" type="text/CSS">
</head>
<body>
<a href="https://www.example.com" id="Link1">
Link To example.com
</a>
</body>
</html>
My CSS code is as follows
#Link1{
text-align: center;
}
I also cannot use the margin-left:auto; margin-right:auto; method.
I am using Google Chrome if that matters.