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
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.
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
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>
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?
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.
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.
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