Default Page Font

M

mcp6453

Beginner question: How do you set a default font for a page using HTML
3.0? I know how to set the font for each line of text, but I'm sure
there's a correct way to set a default font. The font does not change in
size or weight throughout the page.
 
J

Jukka K. Korpela

mcp6453 said:
Beginner question: How do you set a default font for a page using
HTML 3.0?

Using a linked style sheet.

But the question reveals that you really need to read an HTML tutorial,
_especially_ if you just read one and it taught you HTML 3.0 - which is
an incomplere draft that expired in 1995. It was never approved, still
less implemented. So you can't really use HTML 3.0 anywhere, except to
the extent that it coincides with what has actually been implemented.

In HTML as implemented, and as defined in HTML 3.2 and HTML 4, you could
use <basefont face="...">, but its effect has been vaguely defined and
inconsistently implemented. So just forget it.

A simple way of setting the default font face is this (it means using a
style sheet embedded into HTML): add the following into the <head> part
of your document:

<style type="text/css">
body { font-family: "Trebuchet MS", Arial, Helvetica, sans-serif; }
</style>

Adjust the font list as desired. You don't need to list several fonts,
but if you do, a browser uses the first one in the list that is available
on the system.
 
W

WebcastMaker

Beginner question: How do you set a default font for a page using HTML
3.0? I know how to set the font for each line of text, but I'm sure
there's a correct way to set a default font. The font does not change in
size or weight throughout the page.

Short answer is you don't, the user will decide.

The long answer is use CSS. Go to www.w3schools.com and take the 30
minutes to run through the tutorial for CSS.
 
M

mcp6453

Jukka said:
Using a linked style sheet.

But the question reveals that you really need to read an HTML tutorial,
_especially_ if you just read one and it taught you HTML 3.0 - which is
an incomplere draft that expired in 1995. It was never approved, still
less implemented. So you can't really use HTML 3.0 anywhere, except to
the extent that it coincides with what has actually been implemented.

In HTML as implemented, and as defined in HTML 3.2 and HTML 4, you could
use <basefont face="...">, but its effect has been vaguely defined and
inconsistently implemented. So just forget it.

A simple way of setting the default font face is this (it means using a
style sheet embedded into HTML): add the following into the <head> part
of your document:

<style type="text/css">
body { font-family: "Trebuchet MS", Arial, Helvetica, sans-serif; }
</style>

Adjust the font list as desired. You don't need to list several fonts,
but if you do, a browser uses the first one in the list that is available
on the system.

Great. Thanks!
 
K

Karl Groves

Why bother?
People like me turn off designer fonts and sizes and use our own css
instead so that we can read a site using fonts and sizes that we want
to use not what some stupid designer wants us to use.

you, and the three other people who you say are "like you" in your example,
represent such a miniscule demographic that you hardly make a compelling
argument for not changing fonts.

-karl
 
T

Titus A Ducksass - AKA broken-record

Beginner question: How do you set a default font for a page using HTML
3.0? I know how to set the font for each line of text, but I'm sure
there's a correct way to set a default font. The font does not change in
size or weight throughout the page.
Why bother?
People like me turn off designer fonts and sizes and use our own css
instead so that we can read a site using fonts and sizes that we want
to use not what some stupid designer wants us to use.
 
W

WebcastMaker

you, and the three other people who you say are "like you" in your example,
represent such a miniscule demographic that you hardly make a compelling
argument for not changing fonts.

Did I wake up in some bizzaro world? 0_o
 
W

WebcastMaker

When you are going blind, it is very important to be able to change
the font and the contrast and colour and size and and and ....

You completely missed the boat on this one. I was commenting on Karls
reply, he is usually a proponent, his remark made me think otherwise.
 
T

Titus A Ducksass - AKA broken-record

Did I wake up in some bizzaro world? 0_o

When you are going blind, it is very important to be able to change
the font and the contrast and colour and size and and and ....
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top