Send a suggestion!

We're building a brand new version of the site, and we'd love to hear your ideas

Members

Technology Zones

IBM Learning Center

Articles

Hosted By

MaximumASP

Info

Rated
Read 23,128 times

Contents

Related Categories

Beginning HTML - Parameters

LouisRose

Parameters

Now that we've covered the basics as far as formatting text goes, you must be wondering how you change the font. The reason that I didn't include the font tag in the previous section is because it is slightly more complex. The font tag (and some others) accept parameters. In fact, the font tag doesn't do much without them.

A parameter takes the form parametername="value" and belongs in the first of the tag pair. You do not need to include the parameter again in the second of the tag pair. One of the parameters that the font tag can accept is the face parameter. This sets the font's face, such as Arial or Times New Roman. So to set the font's face to Arial, we need to use the following code:

This text is not in Arial. <font face="Arial">This text is in Arial</font>

Try pasting this into your index file, so that it reads:

<html>
<body>
This text is not in Arial. <font face="Arial">This text is in Arial</font>
</body>
</html>

Save your index.htm file and refresh your browser.

Comments

  • want a RTF to HTML software

    Posted by pkn on 15 Feb 2005

    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.

    ...

  • Sequel

    Posted by LouisRose on 18 Jan 2003

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

  • Feedback ...

    Posted by keyz88 on 27 Dec 2002

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

  • HTML - beginner tutorial

    Posted by kkiffe on 30 Nov 2002

    Just what I needed! Thank you very much!

  • HTML Tutorial

    Posted by DotZip on 22 Jul 2002

    Anyone just starting out coding HTML should read this. Clearly and logically presented. 100%.

    DotZip :D