Introduction to Web Technologies
Shameless Plug
Presentation Overview
HTML Components
HTML Pages
That's How This...
<HTML>
<HEAD>
<BODY background="slate.gif">
<H1>Welcome</H1>
<IMG SRC="DOUGLAS.GIF" WIDTH="80" HEIGHT="107" ALT="Our Founder" BORDER="0">
<H2>A Message from the President </H2>
<P><font color=red>Good evening! Thank you for working late!</font></P>
<P>Hello and welcome to DougCo, Incorporated! I'm <b>Douglas S. Michaels,</b> President and Founder, <a href="acronyms.htm">COB, CEO, COO, and BBBWAIC</a>. Let me take this opportunity to congratulate you on obtaining employment here at DougCo; I want you to know that you've chosen to spend your career in one of the most worthwhile and rewarding endeavors possible --making me richer!</P>
. . .
...Turns Into This
Some HTML Tag Examples
START TAG END TAG
<HTML> </HTML>
<HEAD> </HEAD>
<TITLE> </TITLE>
<BODY> </BODY>
<H1>, <H2>, ... </H1>, </H2>, ...
<IMG ...> </IMG> (optional)
<A ...> </A>
<P> </P> (optional)
<BR> (none; "empty" tag)
<OL> </OL>
<UL> </UL>
<LI> </LI> (optional)
HTML Document Layout
<html>
<head>
<title>Title bar text</title>
</head>
<body>
<p>Look, I'm a paragraph!</p>
</body>
</html>
Some Common Text Tags
Ordered & Unordered Lists
Attributes and Values
The Anchor Tag (1)
The Anchor Tag (2)
text only
image only
both
Images (1)
Images (2)
<img src="smiley.gif">
<img src="./pix/mypic.jpg">
<img src="http://www.myweb.com/mail.gif">
Tables (1)
Tables (2)
<table border="1">
<tr>
<td>Row 1, Cell 1</td>
<td>Row 1, Cell 2</td>
</tr>
<tr>
<td>Row 2, Cell 1</td>
<td>Row 2, Cell 2</td>
</tr>
</table>
Row 1, Cell 1 Row 1, Cell 2
Row 2, Cell 1 Row 2, Cell 2
CSS Concepts
Why Use CSS?
What's "Cascading" All About?
What Can CSS Control?
Coding CSS Rules
h2 { font-style : italic ; }
rule
property value
selector declaration
CSS Rule Placement
Linking To An External CSS
<head>�<link rel="stylesheet" type="text/css" � href="mystyles.css">�</head>
Adding Styles To A Single Page
<head>�<style>� h2 { font-style: italic; color: red; } � p { font-family: "Verdana, Arial, sans-� serif"; font-size: 12pt; � color: blue; }�</style>�</head>
Adding Styles To An HTML Tag
<h1 style = "font: small-caps bold italic; font-family: 'Verdana, Arial, sans-serif'; color: #008080; text-align: center;">Gettysburg Address (First Draft)</h1>�<p style = "font-family: Times;�color: #800000; font-weight: bold;">�Four score and seven beers ago…</p>
JavaScript Intro
Implementing JavaScript (1)
Implementing JavaScript (2a)
Implementing JavaScript (2b)
Key Language Components
Programming Constructs
A Few JS Examples (1)
A Few JS Examples (2)
Summary