Basic HTML

Discussion in 'HTML & Website Design' started by Karen615, Jun 29, 2009.

  1. #1
    I'm trying to learn HTML and need some help. Using the align= “right" how do I align this line of code?
    <h3>Review from Customers</h3>
    This is what I have and it's not working.
    <h3 align= “right"> Review from Customers</h3>

    Also, how do I center the mailing address, e-mail address and phone number in this line of code?
    <p>We are located at the corner of 1<sup>st</sup> and Main Street. Our mailing address, e-mail address, and phone number are: <br /> 123 Main Street <br /> Des Plaines, IL 60016 <br /> e-mail: <br /> (847) 321-5476</p

    ANY help would be greatly appreciated.
    Thank you, Karen
     
    Karen615, Jun 29, 2009 IP
  2. ahsan_ma07

    ahsan_ma07 Peon

    Messages:
    97
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Try using the following code to the header.

    <h3 class="title">Review from Customers</h3>

    .title { text-align: right; }

    For the mailing address use text-align center instead of right.
     
    ahsan_ma07, Jun 29, 2009 IP
  3. Karen615

    Karen615 Peon

    Messages:
    29
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Thanks for your help, but I'm taking a class and the teacher wants us to use very basic code and he just wants us to use ALIGN=CENTER. I'm just learning, so I don't know exactly if the code is placed properly. Sorry, I'm a novice.
    Karen
     
    Karen615, Jun 29, 2009 IP
  4. ahsan_ma07

    ahsan_ma07 Peon

    Messages:
    97
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #4
    If you want to do it with inline styling you can do so by adding the style in h3 tag

    <h3 style="align: right;">Review from Customers</h3>
     
    ahsan_ma07, Jun 29, 2009 IP
  5. Karen615

    Karen615 Peon

    Messages:
    29
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Thank again - I copied your code and I don't know why it's not working. It's aligning to the left. I'm using FireFox. Could that be it?
     
    Karen615, Jun 29, 2009 IP
  6. drhowarddrfine

    drhowarddrfine Peon

    Messages:
    5,428
    Likes Received:
    95
    Best Answers:
    7
    Trophy Points:
    0
    #6
    You SHOULD be using Firefox since it's one of the most advanced browsers available.

    That is correct and should be working.

    Tell your teacher that 'align' was deprecated years ago and he shouldn't be teaching it. Are you going to Columbia by any chance?

    Since your teacher is using the 'align' property, it makes me wonder what should be used to do that and whether you can rewrite the markup. Can you use CSS? Without CSS, you can't center those parts without modifying the markup.
     
    drhowarddrfine, Jun 29, 2009 IP
  7. ahsan_ma07

    ahsan_ma07 Peon

    Messages:
    97
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Firefox is the best browser that is currently available from a web developer's perspective. If there is a problem it cannot be with firefox.

    Sorry, It has to be <h3 style="text-align: right;">Review from Customers</h3>. I don't think align would work for aligning text.
     
    ahsan_ma07, Jun 29, 2009 IP
  8. jamesicus

    jamesicus Peon

    Messages:
    477
    Likes Received:
    18
    Best Answers:
    0
    Trophy Points:
    0
    #8
    If you want to use the most "pure" and strict HTML, then code your page in ISO-HTML (reference) -- it is the true "core" HTML -- the only International Standard for the Markup language.

    James
     
    jamesicus, Jun 29, 2009 IP