Creating and Building Websites: Stanford University Continuing Studies CS 21
Creating and Building Websites: Stanford University Continuing Studies CS 21
Mark Branom
[email protected]
Week 3 Slide 1 of 16
Week 3 Agenda
• Using Cascading Style Sheets (CSS) – The
Basics
all - Suitable for all devices. projection - Intended for projected presentations
aural - Intended for speech synthesizers. screen - Intended primarily for color computer screens.
braille - Intended for braille tactile feedback devices. tty - Intended for media using a fixed-pitch character
embossed - Intended for paged braille printers. grid, such as teletypes, terminals, or portable
devices with limited display capabilities.
handheld - Intended for handheld devices (typically small
screen, monochrome, limited bandwidth). tv - Intended for television-type devices
print - Intended for paged, opaque material and for pages
viewed on screen in print preview mode.
HTML document, using the <link> tag method HTML document, using the @import method
<head> <head>
<style type="text/css">
<link rel="stylesheet" type="text/css" <!--
href="basic.css" media="all" /> @import url("basic.css") all;
<link rel="stylesheet" type="text/css" @import url("print.css") print;
href="print.css" media="print" /> -->
</style>
</head> </head>
To apply a font to the entire web page, modify the body tag:
body {font-family: Verdana;}