Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3443488
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T08:47:51+00:00 2026-05-18T08:47:51+00:00

I am really new to HTML and was wondering how you center multiple links

  • 0

I am really new to HTML and was wondering how you center multiple links with html?

I have been trying :

  <a href="http//www.google.com"><p style="text-align:center">Search</a>

But the problem is when I try to put other links behind it for example:

 <a href="http//www.google.com"><p style="text-align:center">Search</a><a href="Contact Us"><p style="text-align:center">Contact Us</a></p>

It just places them on separate lines. I believe this is happening because of the <p> function…but I only know HTML, I know you can do it in CSS but I was wondering if it can be done using just HTML.

Thanks for any help!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-18T08:47:52+00:00Added an answer on May 18, 2026 at 8:47 am

    there are some mistakes in your code – the first: you havn’t closed you p-tag:

    <a href="http//www.google.com"><p style="text-align:center">Search</p></a>
    

    next: p stands for ‘paragraph’ and is a block-element (so it’s causing a line-break). what you wanted to use there is a span, wich is just an inline-element for formatting:

    <a href="http//www.google.com"><span style="text-align:center">Search</span></a>
    

    but if you just want to add a style to your link, why don’t you set the style for that link directly:

    <a href="http//www.google.com" style="text-align:center">Search</a>
    

    in the end, this would at least be correct html, but still not exactly what you want, because text-align:center centers the text in that element, so you would have to set that for the element that contains this links (this piece of html isn’t posted, so i can’t correct you, but i hope you understand) – to show this, i’ll use a simple div:

    <div style="text-align:center">    
      <a href="http//www.google.com">Search</a>
      <!-- more links here -->
    </div>
    

    EDIT: some more additions to your question:

    • p is not a ‘function’, but you’re right, this is causing the problem (because it’s a block-element)
    • what you’re trying to use is css – it’s just inline instead of being placed in a seperate file, but you aren’t doing ‘just HTML’ here
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm really new to HTML and CSS, I've been picking it up along the
I was going through the Flyweight sample code at http://www.oodesign.com/flyweight-pattern-wargame-example-java-sourcecode.html and wondering how it
I'm really new to OOP and C# and I'm trying to understand, how I
I'm really new to this, and I've been going through the YARD docs ,
I am really new to the programming but I am studying it. I have
I am really new with PHP and all I have to do is to
In the new version of MVC we have been given display and editor templates.
First, I'm really new to Asp.Net Ajax I got an user control that have
I'm really new at this jquery stuff. I have a wcf web service running
I'm new to MVC3 and have been working on a small site using EF

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.