Top Banner
1 HTML/CSS Tutorial Alfred C. Weaver
57

1 HTML/CSS Tutorial Alfred C. Weaver. 2 Definitions WWW -- a software infrastructure layered on top of the Internet HTTP -- HyperText Transport Protocol,

Jan 13, 2016

Download

Documents

Aleesha Rose
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: 1 HTML/CSS Tutorial Alfred C. Weaver. 2 Definitions WWW -- a software infrastructure layered on top of the Internet HTTP -- HyperText Transport Protocol,

1

HTML/CSS Tutorial

Alfred C. Weaver

Page 2: 1 HTML/CSS Tutorial Alfred C. Weaver. 2 Definitions WWW -- a software infrastructure layered on top of the Internet HTTP -- HyperText Transport Protocol,

2

Definitions WWW -- a software infrastructure layered on

top of the Internet HTTP -- HyperText Transport Protocol,

layered on top of TCP HTTPS -- secure HTTP using encryption HTML -- HyperText Markup Language,

version 4.01 is current

Page 3: 1 HTML/CSS Tutorial Alfred C. Weaver. 2 Definitions WWW -- a software infrastructure layered on top of the Internet HTTP -- HyperText Transport Protocol,

3

Definitions HTML/CSS

does describe appearance and layout does not enforce an exact look is interpreted (rendered) by the browser some browser options can override HTML settings some CSS settings can override browser options

Page 4: 1 HTML/CSS Tutorial Alfred C. Weaver. 2 Definitions WWW -- a software infrastructure layered on top of the Internet HTTP -- HyperText Transport Protocol,

4

HTML 4.01 Definition HTML defined by World Wide Web (w3)

consortium http://www.w3.org/TR/REC-html40/

Page 5: 1 HTML/CSS Tutorial Alfred C. Weaver. 2 Definitions WWW -- a software infrastructure layered on top of the Internet HTTP -- HyperText Transport Protocol,

5

Creating and Publishing HTML

Create an HTML document by hand, using Notepad automatically, using FrontPage

Publish to a public_html directory Set protections to allow world-wide read Access through

http://hostname/~username/filename.html

Page 6: 1 HTML/CSS Tutorial Alfred C. Weaver. 2 Definitions WWW -- a software infrastructure layered on top of the Internet HTTP -- HyperText Transport Protocol,

6

Validation If in doubt about syntax, validate

http://validator.w3.org/ http://www.htmlhelp.com/tools/validator/

The supplied HTML is validated based upon the DOCTYPE definition

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">

Page 7: 1 HTML/CSS Tutorial Alfred C. Weaver. 2 Definitions WWW -- a software infrastructure layered on top of the Internet HTTP -- HyperText Transport Protocol,

7

HTML Page Format

<!DOCTYPE HTML PUBLIC "-//W3C/DTD HTML 4.0 Transitional//EN>

<HTML>

<HEAD>

<TITLE> Page Title Goes Here </TITLE>

</HEAD>

<BODY>

<H1> Main Heading of Page is Often First </H1>

<! Rest of page goes here. This is a comment. >

</BODY>

</HTML>

Page 8: 1 HTML/CSS Tutorial Alfred C. Weaver. 2 Definitions WWW -- a software infrastructure layered on top of the Internet HTTP -- HyperText Transport Protocol,

8

HEAD Section Elements BASE -- explicitly specify a base URL

<BASE HREF="http://www.virginia.edu"> <A HREF="../file.html">

META -- information about the document <META name="Author" content="Weaver">

SCRIPT -- defines or points to a program to be run <SCRIPT TYPE="text/javascript"> … </SCRIPT> <SCRIPT

SRC="http://hostname/filename"></SCRIPT>

Page 9: 1 HTML/CSS Tutorial Alfred C. Weaver. 2 Definitions WWW -- a software infrastructure layered on top of the Internet HTTP -- HyperText Transport Protocol,

9

BODY Element

<BODY attributename="attributevalue"> Deprecated attributes (but still used)

BACKGROUND=uri (can be tiled) TEXT=color LINK=color (unvisited links) VLINK=color (visited links) ALINK=color (when selected)

Page 10: 1 HTML/CSS Tutorial Alfred C. Weaver. 2 Definitions WWW -- a software infrastructure layered on top of the Internet HTTP -- HyperText Transport Protocol,

10

Headings

<H1 ...> text </H1> -- largest of the six<H2 ...> text </H2><H3 ...> text </H3><H4 ...> text </H4><H5 ...> text </H5><H6 ...> text </H6> -- smallest of the six

ALIGN="position" --left (default), center or right

Page 11: 1 HTML/CSS Tutorial Alfred C. Weaver. 2 Definitions WWW -- a software infrastructure layered on top of the Internet HTTP -- HyperText Transport Protocol,

11

Headings

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><HTML><HEAD> <TITLE>Document Headings</TITLE></HEAD><BODY>Samples of the six heading types:<H1>Level-1 (H1)</H1><H2 ALIGN="center">Level-2 (H2)</H2><H3><U>Level-3 (H3)</U></H3><H4 ALIGN="right">Level-4 (H4)</H4><H5>Level-5 (H5)</H5><H6>Level-6 (H6)</H6></BODY></HTML>

Page 12: 1 HTML/CSS Tutorial Alfred C. Weaver. 2 Definitions WWW -- a software infrastructure layered on top of the Internet HTTP -- HyperText Transport Protocol,

12

Headings

Page 13: 1 HTML/CSS Tutorial Alfred C. Weaver. 2 Definitions WWW -- a software infrastructure layered on top of the Internet HTTP -- HyperText Transport Protocol,

13

<P> Paragraph <P> defines a paragraph Add ALIGN="position" (left, center, right) Multiple <P>'s do not create blank lines Use <BR> for blank line Fully-specified text uses <P> and </P> But </P> is optional

Page 14: 1 HTML/CSS Tutorial Alfred C. Weaver. 2 Definitions WWW -- a software infrastructure layered on top of the Internet HTTP -- HyperText Transport Protocol,

14

<BODY><P>Here is some text </P><P ALIGN="center"> Centered text </P><P><P><P><P ALIGN="right"> Right-justified text<! Note: no closing /P tag is not a problem></BODY>

Page 15: 1 HTML/CSS Tutorial Alfred C. Weaver. 2 Definitions WWW -- a software infrastructure layered on top of the Internet HTTP -- HyperText Transport Protocol,

15

<PRE> Preformatted Text

<PRE>if (a < b) { a++; b = c * d;}else { a--; b = (b-1)/2;}</PRE>

Page 16: 1 HTML/CSS Tutorial Alfred C. Weaver. 2 Definitions WWW -- a software infrastructure layered on top of the Internet HTTP -- HyperText Transport Protocol,

16

Special Characters

Character Use

< &lt;

> &gt;

& &amp;

" &quot;

Space &nbsp;

Page 17: 1 HTML/CSS Tutorial Alfred C. Weaver. 2 Definitions WWW -- a software infrastructure layered on top of the Internet HTTP -- HyperText Transport Protocol,

17

Unicode The Unicode organization

http://www.unicode.org/ The Unicode encodings

http://www.unicode.org/charts/ Example: © is &#169; Example: ™ is &#8482;

Page 18: 1 HTML/CSS Tutorial Alfred C. Weaver. 2 Definitions WWW -- a software infrastructure layered on top of the Internet HTTP -- HyperText Transport Protocol,

18

Colors Values for BGCOLOR and COLOR

many are predefined (red, blue, green, ...) all colors can be specified as a six character

hexadecimal value: RRGGBB FF0000 – red 888888 – gray 004400 – dark green FFFF00 – yellow

Page 19: 1 HTML/CSS Tutorial Alfred C. Weaver. 2 Definitions WWW -- a software infrastructure layered on top of the Internet HTTP -- HyperText Transport Protocol,

19

Fonts

<FONT COLOR="red" SIZE="2" FACE="Times Roman">This is the text of line one </FONT><FONT COLOR="green" SIZE="4" FACE="Arial">Line two contains this text </FONT><FONT COLOR="blue" SIZE="6" FACE="Courier"The third line has this additional text </FONT>

Note: <FONT> is now deprecated in favor of CSS.

Page 20: 1 HTML/CSS Tutorial Alfred C. Weaver. 2 Definitions WWW -- a software infrastructure layered on top of the Internet HTTP -- HyperText Transport Protocol,

20

Ordered (Numbered) Lists

<OL TYPE="1"> <LI> Item one </LI> <LI> Item two </LI> <OL TYPE="I" > <LI> Sublist item one </LI> <LI> Sublist item two </LI> <OL TYPE="i"> <LI> Sub-sublist item one </LI> <LI> Sub-sublist item two </LI> </OL> </OL></OL>

Page 21: 1 HTML/CSS Tutorial Alfred C. Weaver. 2 Definitions WWW -- a software infrastructure layered on top of the Internet HTTP -- HyperText Transport Protocol,

21

Unordered (Bulleted) Lists

<UL TYPE="disc"> <LI> One </LI> <LI> Two </LI> <UL TYPE="circle"> <LI> Three </LI> <LI> Four </LI> <UL TYPE="square"> <LI> Five </LI> <LI> Six </LI> </UL> </UL></UL>

Page 22: 1 HTML/CSS Tutorial Alfred C. Weaver. 2 Definitions WWW -- a software infrastructure layered on top of the Internet HTTP -- HyperText Transport Protocol,

22

Physical Character Styles

<H1>Physical Character Styles</H1><B>Bold</B><BR><I>Italic</I><BR><TT>Teletype (Monospaced)</TT><BR><U>Underlined</U><BR>Subscripts: f<SUB>0</SUB> + f<SUB>1</SUB><BR>Superscripts: x<SUP>2</SUP> + y<SUP>2</SUP><BR><SMALL>Smaller</SMALL><BR><BIG>Bigger</BIG><BR><STRIKE>Strike Through</STRIKE><BR><B><I>Bold Italic</I></B><BR><BIG><TT>Big Monospaced</TT></BIG><BR><SMALL><I>Small Italic</I></SMALL><BR><FONT COLOR="GRAY">Gray</FONT><BR><DEL>Delete</DEL><BR><INS>Insert</INS><BR>

Page 23: 1 HTML/CSS Tutorial Alfred C. Weaver. 2 Definitions WWW -- a software infrastructure layered on top of the Internet HTTP -- HyperText Transport Protocol,

23

Logical Character Styles

<H1>Logical Character Styles</H1><EM>Emphasized</EM><BR><STRONG>Strongly Emphasized</STRONG><BR><CODE>Code</CODE><BR><SAMP>Sample Output</SAMP><BR><KBD>Keyboard Text</KBD><BR><DFN>Definition</DFN><BR><VAR>Variable</VAR><BR><CITE>Citation</CITE><BR><EM><CODE>Emphasized Code</CODE></EM><BR><FONT COLOR="GRAY"><CITE>Gray Citation</CITE></FONT><BR><ACRONYM TITLE="Java Development Kit">JDK Acronym</ACRONYM>

Page 24: 1 HTML/CSS Tutorial Alfred C. Weaver. 2 Definitions WWW -- a software infrastructure layered on top of the Internet HTTP -- HyperText Transport Protocol,

24

<A> Anchors (HyperLinks)Link to an absolute URL:

If you get spam, contact <A HREF="htttp:www.microsoft.com">Microsoft </A> to report the problem.

Link to a relative URL:

See these <A HREF="#references"> references </A>concerning our fine products.

Link to a section within a URL:

Amazon provided a <A HREF="www.amazon.com/#reference">reference for our company. </A>

Page 25: 1 HTML/CSS Tutorial Alfred C. Weaver. 2 Definitions WWW -- a software infrastructure layered on top of the Internet HTTP -- HyperText Transport Protocol,

25

Naming a Section

<H2> <A NAME="#references"> Our References </A> </H2>

Page 26: 1 HTML/CSS Tutorial Alfred C. Weaver. 2 Definitions WWW -- a software infrastructure layered on top of the Internet HTTP -- HyperText Transport Protocol,

26

Hyperlinks

<BODY><H3>Welcome to <A HREF="http://www.cs.virginia.edu"><STRONG>Computer Science</STRONG></A>at the <A HREF="www.virginia.edu">University of Virginia.</A></H3></BODY>

Page 27: 1 HTML/CSS Tutorial Alfred C. Weaver. 2 Definitions WWW -- a software infrastructure layered on top of the Internet HTTP -- HyperText Transport Protocol,

27

Images

<BODY><FONT SIZE="6" FONT="Arial" COLOR="Blue">This is a picture of your instructor for CS453. <IMG SRC="http://www.cs.virginia.edu/~acw/weaver.jpg" ALIGN="left" WIDTH="150" HEIGHT="200"> His name is Alfred Weaver and his office is OLS 207. His telephone is 982-2201 and his email is [email protected]. His research specialty is protecting the privacy and security of medical data by using web services to implement authentication, authorization, and federation. This work has been supported for two years by Mr. David Ladd at Microsoft Research (Redmond, WA) and has just been renewed for an additional two years. This work was demonstrated at Microsoft's annual Faculty Summit in August 2003 and again in August 2004.</FONT></BODY>

Page 28: 1 HTML/CSS Tutorial Alfred C. Weaver. 2 Definitions WWW -- a software infrastructure layered on top of the Internet HTTP -- HyperText Transport Protocol,

28

Align=position

Image/Text Placement

Left Image on left edge; text flows to right of image

Right Image on right edge; text flows to left

Top Image is left; words align with top of image

Bottom Image is left; words align with bottom of image

Middle Words align with middle of image

Images

Page 29: 1 HTML/CSS Tutorial Alfred C. Weaver. 2 Definitions WWW -- a software infrastructure layered on top of the Internet HTTP -- HyperText Transport Protocol,

29

ALIGN="left"

Page 30: 1 HTML/CSS Tutorial Alfred C. Weaver. 2 Definitions WWW -- a software infrastructure layered on top of the Internet HTTP -- HyperText Transport Protocol,

30

ALIGN="right"

Page 31: 1 HTML/CSS Tutorial Alfred C. Weaver. 2 Definitions WWW -- a software infrastructure layered on top of the Internet HTTP -- HyperText Transport Protocol,

31

ALIGN="top"

Page 32: 1 HTML/CSS Tutorial Alfred C. Weaver. 2 Definitions WWW -- a software infrastructure layered on top of the Internet HTTP -- HyperText Transport Protocol,

32

ALIGN="middle"

Page 33: 1 HTML/CSS Tutorial Alfred C. Weaver. 2 Definitions WWW -- a software infrastructure layered on top of the Internet HTTP -- HyperText Transport Protocol,

33

ALIGN="bottom"

Page 34: 1 HTML/CSS Tutorial Alfred C. Weaver. 2 Definitions WWW -- a software infrastructure layered on top of the Internet HTTP -- HyperText Transport Protocol,

34

Images SRC is required WIDTH, HEIGHT may be in units of pixels or

percentage of page or frame WIDTH="357" HEIGHT="50%"

Images scale to fit the space allowed

Page 35: 1 HTML/CSS Tutorial Alfred C. Weaver. 2 Definitions WWW -- a software infrastructure layered on top of the Internet HTTP -- HyperText Transport Protocol,

35

Tables

<TABLE> table tag<CAPTION> optional table title<TR> table row<TH> table column header<TD> table data element

Page 36: 1 HTML/CSS Tutorial Alfred C. Weaver. 2 Definitions WWW -- a software infrastructure layered on top of the Internet HTTP -- HyperText Transport Protocol,

36

Tables

<TABLE BORDER=1> <CAPTION>Table Caption</CAPTION> <TR><TH>Heading1</TH> <TH>Heading2</TH></TR> <TR><TD>Row1 Col1 Data</TD><TD>Row1 Col2 Data</TD></TR> <TR><TD>Row2 Col1 Data</TD><TD>Row2 Col2 Data</TD></TR> <TR><TD>Row3 Col1 Data</TD><TD>Row3 Col2 Data</TD></TR></TABLE>

Page 37: 1 HTML/CSS Tutorial Alfred C. Weaver. 2 Definitions WWW -- a software infrastructure layered on top of the Internet HTTP -- HyperText Transport Protocol,

37

<TABLE> Element Attributes

ALIGN=position -- left, center, right for table BORDER=number -- width in pixels of border

(including any cell spacing, default 0) CELLSPACING=number -- spacing in pixels between

cells, default about 3 CELLPADDING=number -- space in pixels between

cell border and table element, default about 1 WIDTH=number[%]-- width in pixels or percentage of

page/frame width

Page 38: 1 HTML/CSS Tutorial Alfred C. Weaver. 2 Definitions WWW -- a software infrastructure layered on top of the Internet HTTP -- HyperText Transport Protocol,

38

<TABLE> Element Attributes

BGCOLOR=color -- background color of table, also valid for <TR>, <TH>, and <TD>RULES=value -- which internal lines are shown; values are none, rows, cols, and all (default)FRAME=value -- which external lines are shown; values are all, void (none), above (top), below (bottom), hsides (top and bottom), vsides (left and right), lhs (left), and rhs (right)

Page 39: 1 HTML/CSS Tutorial Alfred C. Weaver. 2 Definitions WWW -- a software infrastructure layered on top of the Internet HTTP -- HyperText Transport Protocol,

39

<TR> Table Row Attributes

Valid for the table row:ALIGN -- left, center, rightVALIGN -- top, middle, bottomBGCOLOR -- background color

<TABLE ALIGN="center" WIDTH="300" HEIGHT="200"><TR ALIGN="left" VALIGN="top" BGCOLOR="red"><TD>One</TD><TD>Two</TD><TR ALIGN="center" VALIGN="middle" BGCOLOR="lightblue"><TD>Three</TD><TD>Four</TD><TR ALIGN="right" VALIGN="bottom" BGCOLOR="yellow"><TD>Five</TD><TD>Six</TD></TABLE>

Page 40: 1 HTML/CSS Tutorial Alfred C. Weaver. 2 Definitions WWW -- a software infrastructure layered on top of the Internet HTTP -- HyperText Transport Protocol,

40

Frames Frames help control navigation and display <FRAME> attributes include

FRAMEBORDER – yes or 1 for borders FRAMESPACING – width of border BORDERCOLOR – color SRC – location of HTML to display in frame NAME – destination for TARGET attribute

Page 41: 1 HTML/CSS Tutorial Alfred C. Weaver. 2 Definitions WWW -- a software infrastructure layered on top of the Internet HTTP -- HyperText Transport Protocol,

41

Frames MARGINWIDTH – left/right margins MARGINHEIGHT – top/bottom margins SCROLLING – yes or 1 adds scroll bar NORESIZE – yes or 1 disables resizing

Page 42: 1 HTML/CSS Tutorial Alfred C. Weaver. 2 Definitions WWW -- a software infrastructure layered on top of the Internet HTTP -- HyperText Transport Protocol,

42

Frames

<FRAMESET ROWS="75%,25%">

<FRAMESET COLS="*,*,*"> <FRAME SRC="http://www.virginia.edu"> <FRAME SRC="http://www.virginia.edu"> <FRAME SRC="http://www.virginia.edu"> </FRAMESET>

<FRAMESET COLS="*,*"> <FRAME SRC="http://www.virginia.edu"> <FRAME SRC="http://www.virginia.edu"> </FRAMESET>

</FRAMESET>

Page 43: 1 HTML/CSS Tutorial Alfred C. Weaver. 2 Definitions WWW -- a software infrastructure layered on top of the Internet HTTP -- HyperText Transport Protocol,

43

Frames

Page 44: 1 HTML/CSS Tutorial Alfred C. Weaver. 2 Definitions WWW -- a software infrastructure layered on top of the Internet HTTP -- HyperText Transport Protocol,

44

Frames

<FRAMESET ROWS="25%,75%"

<FRAMESET COLS="*,*,*"> <FRAME SRC="http://www.virginia.edu"> <FRAME SRC="http://www.virginia.edu"> <FRAME SRC="http://www.virginia.edu"> </FRAMESET>

<FRAMESET COLS="*,*"> <FRAME SRC="http://www.virginia.edu"> <FRAME SRC="http://www.virginia.edu"> </FRAMESET>

</FRAMESET>

Page 45: 1 HTML/CSS Tutorial Alfred C. Weaver. 2 Definitions WWW -- a software infrastructure layered on top of the Internet HTTP -- HyperText Transport Protocol,

45

Frames

Page 46: 1 HTML/CSS Tutorial Alfred C. Weaver. 2 Definitions WWW -- a software infrastructure layered on top of the Internet HTTP -- HyperText Transport Protocol,

46

Frames

<FRAMESET ROWS="*,*">

<FRAMESET COLS="15%, 2*, *"> <FRAME SRC="http://www.cs.virginia.edu/"> <FRAME SRC="http://www.cs.virginia.edu/"> <FRAME SRC="http://www.cs.virginia.edu/"> </FRAMESET>

<FRAMESET COLS="40%, *"> <FRAME SRC="http://www.cs.virginia.edu/"> <FRAME SRC="http://www.cs.virginia.edu/"> </FRAMESET>

</FRAMESET>

Page 47: 1 HTML/CSS Tutorial Alfred C. Weaver. 2 Definitions WWW -- a software infrastructure layered on top of the Internet HTTP -- HyperText Transport Protocol,

47

Frames

Page 48: 1 HTML/CSS Tutorial Alfred C. Weaver. 2 Definitions WWW -- a software infrastructure layered on top of the Internet HTTP -- HyperText Transport Protocol,

48

HTML See more HTML examples in our virtual labs http://www.cs.virginia.edu/cs453

Page 49: 1 HTML/CSS Tutorial Alfred C. Weaver. 2 Definitions WWW -- a software infrastructure layered on top of the Internet HTTP -- HyperText Transport Protocol,

49

Cascading Style Sheets A powerful way to specify styles and

formatting across all documents in a web site Style sheets can be specified inline or as a

separate document Helps to keep a common look and feel

Page 50: 1 HTML/CSS Tutorial Alfred C. Weaver. 2 Definitions WWW -- a software infrastructure layered on top of the Internet HTTP -- HyperText Transport Protocol,

50

CSS CSS definition from W3C

Cascading Style Sheets, level 2 revision 1CSS 2.1 Specification

W3C Candidate Recommendation 25 February 2004 http://www.w3.org/TR/2004/CR-CSS21-20040225/ http://www.w3.org/TR/2004/CR-CSS21-20040225/

CSS tutorial from W3schools http://www.w3schools.com/css/default.asp

CSS examples from Core Web Programming

Page 51: 1 HTML/CSS Tutorial Alfred C. Weaver. 2 Definitions WWW -- a software infrastructure layered on top of the Internet HTTP -- HyperText Transport Protocol,

51

CSS General form:

selector {property: value} or

selector {property1: value1; property2: value2; ... propertyn: valuen }

Page 52: 1 HTML/CSS Tutorial Alfred C. Weaver. 2 Definitions WWW -- a software infrastructure layered on top of the Internet HTTP -- HyperText Transport Protocol,

52

CSS

H1 {text-align: center; color: blue; font: Arial, Times New Roman}

P {text-align: left; color: red; font-family: Tahoma, Arial Narrow; font-style: italics}

Page 53: 1 HTML/CSS Tutorial Alfred C. Weaver. 2 Definitions WWW -- a software infrastructure layered on top of the Internet HTTP -- HyperText Transport Protocol,

53

Fizzics1 (no style sheet)<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><HTML><HEAD> <TITLE>New Advances in Physics</TITLE></HEAD><BODY><H1>New Advances in Physics</H1><H2>Turning Gold into Lead</H2>In a startling breakthrough, scientist B.O. "Gus" Fizzics has invented a <STRONG>practical</STRONG> technique for transmutation! For more details, please see <A HREF="give-us-your-gold.html">our transmutation thesis</A>....

</BODY></HTML>

From: Core Web Programming, Marty Hall and Larry Brown, © 2002

Page 54: 1 HTML/CSS Tutorial Alfred C. Weaver. 2 Definitions WWW -- a software infrastructure layered on top of the Internet HTTP -- HyperText Transport Protocol,

54

Fizzics1

From: Core Web Programming, Marty Hall and Larry Brown, © 2002

Page 55: 1 HTML/CSS Tutorial Alfred C. Weaver. 2 Definitions WWW -- a software infrastructure layered on top of the Internet HTTP -- HyperText Transport Protocol,

55

Fizzics2 (with style sheet)

<HEAD> <TITLE>Document Title</TITLE> <STYLE TYPE="text/css">BODY { background: URL(images/confetti-background.jpg) } H1 { text-align: center; font-family: Blackout } H2 { font-family: MeppDisplayShadow } STRONG { text-decoration: underline }</STYLE> </HEAD>

From: Core Web Programming, Marty Hall and Larry Brown, © 2002

Page 56: 1 HTML/CSS Tutorial Alfred C. Weaver. 2 Definitions WWW -- a software infrastructure layered on top of the Internet HTTP -- HyperText Transport Protocol,

56

Fizzics2 (with style sheet)

From: Core Web Programming, Marty Hall and Larry Brown, © 2002

Page 57: 1 HTML/CSS Tutorial Alfred C. Weaver. 2 Definitions WWW -- a software infrastructure layered on top of the Internet HTTP -- HyperText Transport Protocol,

57

CSS See more CSS in our virtual labs http://www.cs.virginia.edu/cs453