Monday, January 02, 2017

[xvafqsgw] Default text color and background

Try setting the default text color and background in a web browser (e.g., Firefox) to light on dark to see how many web pages become unreadable.  Many webpages specify either a dark text color or (xor) a light background color but not both, causing either dark-on-dark or light-on-light when one changes the defaults to light on dark.  Light on dark is useful in dark ambient environments.

The ability for users to set their default colors and fonts seems to be disappearing from browsers, though still present in desktop Firefox.  User stylesheets are also useful.

For reference, to set default colors using attributes body tag (works up to HTML 4.01, not supported in HTML5):
<body text="#000000" bgcolor="#ffffff" link="#0000ee" vlink="#551a8b" alink="#ee0000">
Or with CSS in the HEAD section:
<style type="text/css"> body { background-color: white ; color: black } a:link { color: #0000ee } a:visited { color: #551a8b } a:active { color:#ee0000 }</style>

Source code in Firefox specifying default colors.

No comments :