Library tutorials & articles
Text formatting in HTML
By Jamie Lindgren, published on 28 Oct 2001
Page 4 of 4
- Introduction
- Bold, Italic & Underline
- Changing Font Styles
- Alignment and Spacing
Alignment and Spacing
Why stick to the left...
When you can hang out in the right...
Want to know how to change the aligment of your text like that? It's simple! For having your text stick to the left, you just leave it as normal text. The left is default. If you want your text on the right, you'd use <p align=right> top open the tag and <p> to close the tag. Center is really simple. You just use <center> to open the tag, and <center> to close it.
Ever noticed how when you write an HTML document with, all your carriage returns seem to be gone when you veiw the page in your web browser? That's because you need special tags for these. To do carriage returns, you use <BR>. The <BR> tag is a little funny, because unlike most tags, it doesn't need a closing tag.
Another way to do this, instead of <BR> is using the <p> and <p> tags. Just put the opening P tag at the top of your paragraph, and the closing one at the bottom. These are the same as 2 BR tags.
Another way you can do formatting is using the <pre> tag. It gives you preformatted text, so [TAB] indents and carriage returns work. Remember to close it with <pre>.
That brings this tutorial to an end. I hope it has been helpful. If you want to ask me questions or comment on this tutorial, you can e-mail me at wipeoutgc@hotmail.com.
Related articles
Related discussion
-
$200 Website Design and Development
by manypeopledesign (1 replies)
-
Dallas Interactive Marketing & Internet SEO SEM October Meetup
by dsafmx (4 replies)
-
Can I design web site by using ASP.net
by pradeepfusion (1 replies)
-
Online Freelance Jobs for Programmers
by getafreelancer02 (0 replies)
-
Inserting checkbox values into one field
by ramsenthil2000 (1 replies)
Related podcasts
-
Top Web Design Mistakes
Pete LePage is Product Manager of Internet Explorer Developer Division and he doesn’t want your web site to stink. Sharing from his talk given at TechEd 2008, Pete highlights 10 common web design mistakes and tells you how you can bypass the same blunders. Pete also tells us how future features o...
This thread is for discussions of Text formatting in HTML.