HTML Fonts

Computer Education, Training & Tutorial Resources - ComputerEducationWorld.com
Home » Free Computer Training and Courses » HTML For Advanced »

A font definition file should contain only commands from this subsection. that these commands can also be used outside a font definition file: they can be put in package or class files, or even in the preamble of a document.

<p>
<font size=”2″ face=”Verdana”>
This is a text.
</font>
</p>

<p>
<font size=”3″ face=”Times”>
this is text.</font>
</p>

How to set the font of a text.

<html>
<body>
<h1 style=”font-family:verdana”>A heading</h1>
<p style=”font-family:courier”>A paragraph</p>
</body>
</html>

How to set the font size of a text.

<html>
<body>
<h1 style=”font-size:150%”>A text</h1>
<p style=”font-size:80%”>A paragraph</p>
</body>
</html>

How to set the color of a text.

<html>
<body>
<p style=”font-family:verdana;font-size:80%;color:green”>
This is a text.This is a text.This is a text.
This is a text.This is a text.This is a text.This is a text.This is a text.This is a text.This is a text.
</p>
</body>
</html>


• • •
 



captcha PHP Script Free PHP captcha script free php
Website Design by WebWalas.com