Web Quality - Style Sheets
Using style sheets is essential to improving page quality.
Do not use the tag!
Use CSS to set font sizes on web pages. Do not use the font tag.
Use The tag increases document size and makes every change to the standard text size a nightmare.
Consider the following situation:
One day you decide to change the color and size of all headings on your site. With CSS you can do it by changing a single line. If you had used the tag, you would have to edit every heading on every page of your site.
Using styles instead of the tag makes it much easier to build high-quality web interfaces.
Do not use fixed font sizes
Do not use fixed size values. Always use relative size values.
The most important reason for this advice is that fixed sizes cannot be resized through the browser.
Your visitors use different devices (monitors), different viewing environments (lighting) and may have disabilities (low vision).
For example, you can set someone's text size to 100% (or medium), the main heading to 140% (or x-large) and subheadings to 120% (or large), so users can set their preferred size in the browser.
Note: Being able to adjust the text size of a web page also changes the amount of text on a printed page.
Do not use a very small default font size
Some sites use very small text so they can "cram" more content into every page or make the page look more "stylish".
Again, different devices (monitors), different viewing environments (lighting) and possible disabilities (low vision) can all create reading barriers for users.
Do not force users to enlarge the text every time they visit your site.
Always use a consistent background color
Most web pages use color for different text elements. Headings and links are usually a different color from body text.
As a web designer, you should be aware that your visitors can change the default color options.
If you define colors for web elements, you should define a background color as well.
Without a background color, your site can be ruined by bad color combinations (such as bright red text on a red background, or dark text on a dark background).
If you do not specify a background color, the text may be hard to recognize.