Friday, April 22, 2011

HTML: Font Selection

Program 2.1

<html>
<head>
                <title>Program 2.1</title>
</head>
<body>
                Never tell a lie.
</body>
</html>


Result
















In this program the text “Never tell a lie” is displayed by browsers default font. You can choose font for this text to display on your browser. If you want to use the Impact font for this text then write the font tag on the text editor and then write the face=”Impact”. See the example:


Program 2.2


<html>

<head>

                <title>Program 2.1</title>

</head>

<body>

                <font face="Impact">Never tell a lie.</font>

</body>

</html>



Result


No comments:

Post a Comment