Library tutorials & articles

Beginning HTML

Further Formatting

The only other things that you might want to do to text are change its alignment (is it left aligned, right aligned or centred) or change it's font size.

To change the alignment of text use the the p (paragraph) tag pair and the parameter align, with the following values:

Name HTML Effect
Right Align <p align="right">Some Text Here</p>

Some Text Here

Centre <p align="center">Some Text Here</p>

Some Text Here

Why haven't I included a parameter value for left align? Because if you don't specify an alignment then the browser will align the text left automatically.

Size

To change the size of a font, then use the size parameter of the font tag. Here's an example:

<font size=16>This text is size 16 font.</font>

Notice how we didn't put quotation marks around the 16. That's because it's a number, and so doesn't require them.

Comments

  1. 10 Sep 2008 at 13:52

    Hi

    Nice read, I m noob in web design therefor it is so much useful for me in my study.

     

    thanks 

  2. 15 Feb 2005 at 22:02

    Hi All,
        I have Registered in ur site, becs i want a Free HTML conerter software. if it is not available in ur Company then give the address where i down load it. i want to use it personally.


    Regards
        PKN

  3. 18 Jan 2003 at 19:21

    Hi all,


    Sorry I've been away for so long. But I may be back soon. Does anybody really want a sequel? If so what do you want in it. Anything in particular? Post here or mail me and I'll include it, if it's not too hideously complicated.


    I'm glad that some people have found this of some use.

  4. 27 Dec 2002 at 22:06

    Thanks for presenting "the beef", with none of the fat (or fluf) ...

  5. 30 Nov 2002 at 17:41

    Just what I needed! Thank you very much!

  6. 22 Jul 2002 at 11:40
    Anyone just starting out coding HTML should read this. Clearly and logically presented. 100%.

    DotZip
  7. 19 Jul 2002 at 15:53

    This is awesome, please do a sequel because I really want to learn HTML. I usually use Dreamweaver or something but I want to stop being lazy!


    Please do a sequal

  8. 01 Jan 1999 at 00:00

    This thread is for discussions of Beginning HTML.

Leave a comment

Sign in or Join us (it's free).

Louis Rose

Related discussion

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

Want to stay in touch with what's going on? Follow us on twitter!