Click to See Complete Forum and Search --> : Different types of text


georgeafi
03-04-2003, 09:17 AM
I was wondering if there is a website that has html code for different types of text to use on your site? I don't want to use the plain text. I have looked around and all i can find is how to layout text. Any help would be apreciated.

Tim158
03-04-2003, 10:10 AM
You shouldn't use the FONT element because it is no longer appreciated. Use CSS like so:

<style type="text/css">
h3 {
font-family: times
}
p.sans {
font-family: sans-serif
}
p {
font-family: courier
}
</style>

It's best to stick to the basic fonts found on every computer, for accessibility.

georgeafi
03-04-2003, 10:23 AM
Where at in the code would i put the text? And where at on my Scripts page?

Tim158
03-04-2003, 10:35 AM
You can use CSS inside an element like so:

<p style="font-family: sans-serif">

OR

You can put the script in the head of your document:

<head>
<title>This is the Title</title>
<style type="text/css">
h3 {
font-family: times
}
p.sans {
font-family: sans-serif
}
p {
font-family: courier
}
</style>
</head>

OR

You can link to a CSS file by putting this code into the header of your page:

<link rel="STYLESHEET"
href="css.css"
type="text/css" />

Example of your css.css file:

h3 {
font-family: times
}
p.sans {
font-family: sans-serif
}
p {
font-family: courier
}

Good CSS Resource: http://www.w3schools.com/css/