| |
 |
| |
Ars Gratia Artis |
| What Did You Think? |
All
the Catalogs
By Penelope Umbrico. An all text piece that is comprised
of the names of all the available mail-order catalogs listed on
the internet, 15,194 in total, at time of compiling in 2002.
Alphanumeric
Labs
By August Highland. Poetry based site.
Back
to Life
By Albay at Xurban.net. "An experiment on animal
behavior .social isolation issue in a special type aquarium."
The
Salvaggio Museum
Collection of different web artists.
Meaning
Arises Through Use
Art and politics in a junction between on-line and
real world.
North
Country
Interactive story by Helen Thorington
Color
Stories: Yellow
Abstract works by Kanarinka
Keeping
Up Appearances
Interactive prose by Meni Lewis Obadike
Learning
To Love You More
By Harrell Fletcher, Miranda July and Yuri Ono. Web
site and non-web presentations with general public involvement in
performances.
Poetry
by Go Ego Go!
Collective on on-line poets and poems. Lots of links
to other poetry sites.
Poetry
the Works
By Komninos. Interesting example of aleatoric
textual art.
Point
of Departure
Lost track of who did it, but lick on the "Aircraft
Failure" diagram for some good text and animated gif artwork.
American
Internet and Anatomy
of Hope
By Eryk Salvaggio. Text art and Coca Cola. Be sure
to read the ~.txt~ link.
Untitled
HTML Paintings
Abstract images by Enrico Glerean.
Ghost City
Linked images by Jody Zellen
Mandiberg.com
Very conceptual site by Michael Mandiberg.
Genochoice
Satire
Zoe's
World
Interactive rollovers by Zoe Beloff
|
| |
HTML Markup |
| What’s A Markup language? |
A collection of command elements that tell
a browser what to do.
Elements are generally in the form of:
<tag attribute=”property”>content</tag>
<p align=”center”>This is centered text</p>
There’s also markup for special characters, in the
form of:
&xxxx; |
An ampersand (&), followed by a few letters or # sign
and number, ended with a semicolon. |
Like this:
|
A non-breakable space |
" |
A quotation mark ? |
© |
A copyright mark © |
® |
A registration mark ® |
Here's a listing.
And one more thing, comments:
<!-- an example comment -->
|
| The Rules |
Tags, attributes and properties are always
inside <
and >
Most, but not all, tags come in pairs. Works like a light switch:
<tag> |
It’s turned on. |
</tag> |
It’s turned off. |
If you don’t turn it off, things may break further
down the page. Sometime everything disappears!
The exceptions need a /
within the brackets to turn them off.
<area />
<base />
<basefont />
<br />
<col />
<frame />
<hr />
<img />
<input />
<isindex />
<link />
<meta />
<param />
First tag on, last tag off: (BTW, here's
how to get Mac's TextEdit to work for hand coding)
<tag1><tag2><tag3>Your
text</tag3></tag2></tag1>
<b><i>This is bold italic text</i></b>
<b><i>This won’t do what you hope</b></i>
Another way to think of it: “Elements cannot overlap
each other”
|
| Attributes and properties |
Many tags have optional attributes and properties
that use values to modify the tag’s behavior.
<p align=”center”>This
is centered</p>
Unlike tags, attributes and values don’t need to be
turned off. |
| Rules Continued |
In XHTML, properties should always be in quotes:
<hr width="12"
/> |
Right |
<hr width=12 /> |
Wrong |
The leading <
and the following tag name can’t have a space, but the trailing
>
can.
<body> |
Right |
< body> |
Wrong |
In fact, you can have as much white space or returns after
the tag name as you want.
<body margin=”0” bgcolor=”#ffff00”>
Is the same as:
<body
margin=”0”
bgcolor=”#ffff00”
>
|
| Ignorance is bliss |
Usually, browsers will ignore tags they don’t
understand. This can be both a blessing and a curse!
|
| New for XHTML |
HTML Tags used to be in UPPERCASE, not by requirement,
but by convention. XHTML should be lowercase only.
All tags, no exceptions, must be closed.
Single tags without a corresponding close tag must be closed inside
themselves
|
| |
The Document Model |
| |
Everything in the browser window at any given
moment is the “document”. |
| Feed
Me |
The browser is fed the doc in a particular
order. First the information about what kind of doc is coming down
the wire. Here’s the type we’ll use:
<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN”
“http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd>
Not strictly required, but it can make a difference, especially
in future browsers. Also note, that unlike the rest of XHTML, DOCTYPE
and some of its properties must be in uppercase
This doctype tells the browser:
“This document will be an html document, and
the place this flavor of html XHTML 1.0 Transitional, and it is
kept, in case you need to check it, is at http://www.w3.org/xhtml1/DTD/xhtml1-tranistional.dtd
(link it)
The next thing down is a tag that tells the browser there is a
container of stuff coming with the html code in it:
Next comes a notice that the first bit in the html container
is a container within the html container that has information about
the page, or the head information:
Then comes some information about the page. This can be
all sorts of things, like style sheets, JavaScript, keywords, redirects,
etc. Usually you have a title for your page that will display in
the browsers title bar:
<title>The Document Title</title>
If there’s no other stuff for the head, the browser
needs to know to turn off interpreting stuff as head content.
Next, the body container comes down. This is what the browser
will actually render to the screen:
Then the meaty bits…
<h1>Main Heading</h1>
<p>A paragraph.</p>
<p>Another paragraph.</p>
<ul> <!-- an unordered list -->
<li>A list item.</li>
<li>Another list item.</li>
</ul>
Then finally, the browser is told that it’s all over:
Altogether, that looks like this:
<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN”
“http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd>
<html>
<head>
<title>The Document Title</title>
</head>
<body>
<h1>Main Heading</h1>
<p>A paragraph.</p>
<p>Another paragraph.</p>
<ul> <!—an unordered list -->
<li>A list item.</li>
<li>Another list item.</li>
</ul>
</body>
</html>
|
Separating presentation from content |
HTML’s origins as an academic paper presentation
technology = a visual designers nightmare!
The tags we’ll learn are problematic. The standard has become
to bend them to our will, but it makes it REALLY HARD TO BUILD
AND MAINTAIN.
Welcome to a world of pain and GOTHCA’s.
We’ll come back to this subject again and again.
|
| |
The Tags |
| Having A Breakdown |
There are thirteen basic types of tags by some
counts:
Basic |
Styles |
| Blocks |
Input |
| Lists |
Output |
| Character Format |
Meta Information |
| Images |
Programming |
| Links |
Frames |
| Tables |
|
|
| Having another Breakdown |
There are 3 ways in which tags affects the
horizontal area in the window:
| Block |
The content inside the tags spans a line by itself |
| Inline |
The content inside the tags works inside a line |
| Meta |
The content inside the tags isn't displayed |
|
| The overlap |
| Tag |
B/I/M |
Tag |
B/I/M |
| Basic |
Block, Meta |
Styles |
Block, Inline, Meta |
| Blocks |
Block |
Input |
Block, Inline |
| Lists |
Inline, Meta |
Output |
Block, Inline |
| Character Format |
Inline |
Meta Information |
Meta |
| Images |
Inline |
Programming |
Meta |
| Links |
Block, Inline |
Frames |
Meta |
| Tables |
Block |
|
|
|
| Having yet another Breakdown |
The document is broken down at it's highest
level into two parts:
| Header |
The information at the top of the html file that tells
the browser about what's on the page
<head>
and </head>
|
| Body |
The information after the header that contains the content
of the page.
<body>
and </body>
|
| Meta |
The content inside the tags isn't displayed |
Some header tags
<title> |
Provides the title for the title bar of the browser AND
for the bookmark. |
<link> |
Provides the location of an associated document, like
an external file full of styles or javaScript. |
<script> |
Tells the browser to start interpreting what follows as
code, usually javaScript. |
<meta> |
Provides info not supplied by any other header tag. |
And there’s too many tags that go inside the body to list
here…we'll get to those.
|
| |
Let’s write some HTML! |
| Start with an almost empty document |
<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN”
“http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd>
<html>
<head>
<title>The Document Title</title>
</head>
<body>
Hello World!
</body>
</html>
|
| A New Look |
We can control some of the basic look of the
page with the <body> attributes and properties.
<body
|
Tag itself |
bgcolor="#ff9900"
|
The background color in hex |
background="pattern.gif"
|
Image used for the background |
text="#000000"
|
The color of all text on the page in hexadecimal (more
soon) |
link="#660000"
|
The color of links |
vlink="#cc0000"
|
The color of visited links |
alink="#ff0000"
|
The color of "active" links, or ones currently
being sought |
leftmargin="0"
|
IE only way of declaring how wide the left margin is |
| topmargin="0"
|
Ditto for top margin. No command for right margin available
or required, really |
marginwidth="0"
|
Netscape's syntax for the same thing as IE's leftmargin |
marginheight="0"
|
|
All these attributes are "deprecated" and won't be necessary
once we get into stylesheets. Indeed, it may even fail in future
versions of browsers.
|
| |
Let’s Try It |
| |
<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN”
“http://www.w3.org/TR/xhtml1/DTD/ xhtml1-transitional.dtd>
<html>
<head>
<title>The Document Title</title>
</head>
<body bgcolor=”#FF9900” text”#660000”>
Hello World!
</body>
</html>
Hexawhatamal? What kind of
color is that?
|
| |
Separating presentation from content structure |
| A trial
Separation |
Your content should be formatted not by how
a particular tag looks, but by what a particular tag means. This
may seem obvious, but it’s easy to loose track of it. The
tag may not look the way you want, but you can redefine the tag
later in a stylesheet.
If something is a main headline, then it should be <h1>
A subhead to the main head should be <h2>
A subhead to the subhead to the main subhead should be <h3>
and so on. HTML specs up to 6 levels!
Body copy should be <p>
for paragraph
Lists should be <ul>
or <ol> for
ordered or unordered lists
<address> |
As in 1234 Main Street USA. |
<blockquote> |
A quotation set off from other text. |
<dl> |
A definition list. |
<pre> |
Pre formatted text. Spaces are not truncated and lines
not broken. |
<div> |
Division. A generic block tag. |
|
| |
Let’s Add Some Content |
| Get the text
here |
<body>
<h1>MOBY DICK</h1>
<h2>OR THE WHALE</h2>
<p>by Herman Melville</p>
<h3>ETYMOLOGY</h3>
<h4>
(Supplied by a Late Consumptive Usher to a Grammar
School)
</h4>
<p>
The pale Usher- threadbare in coat, heart, body,
and brain; I see him now. He was ever dusting his old lexicons
and grammars, with a queer handkerchief, mockingly embellished
with all the gay flags of all the known nations of the world.
He loved to dust his old grammars; it somehow mildly reminded
him of his mortality.
</p>
<blockquote>
"While you take in hand to school others,
and to teach them by what name a whale-fish is to be called in
our tongue leaving out, through ignorance, the letter H, which
almost alone maketh the signification of the word, you deliver
that which is not true. " HACKLUYT
</blockquote>
<ul>
<li>KETOS, Greek</li>
<li>CETUS, Latin</li>
<li>WHOEL, Anglo-Saxon</li>
<li>HVALT, Danish. WAL, Dutch</li>
<li>HWAL, Swedish</li>
<li>WHALE, Icelandic</li>
<li>WHALE, English</li>
<li>BALEINE, French</li>
</ul>
</body>
|
| |
Adding Inline Content Structure |
| |
<cite> |
Citation, as in quotation attributions,
usually italic. |
<code> |
For showing examples of code. Usually in
a mono-spaced font. Usually combined with the <pre>
tag to keep code-like formatting. |
<em> |
Emphasis, usually italic |
<kbd> |
Keyboard, an example of text directing what
the end user should type into a field. Usually monospaced
and bold. |
<samp> |
Sample text that might be output from something,
as in "Your result will look like this".
Usually monospaced. |
<strong> |
Strong. Usually rendered bold. It’s
really short for “Strong Emphasis”. |
<var> |
Variable, as in x=y+z. Usually italic. |
<sub> |
Subscript, puts text half a character height
lower. |
<sup> |
Superscript, puts text half a character height
higher. |
<span> |
Generic inline tag. Handy for doing your own styling |
|
| |
Let’s Add Some Inline Structure |
| Title |
<body>
<h1>MOBY DICK</h1>
<h2>OR THE WHALE</h2>
<p>
<em>by
<strong>Herman
Melville</strong>
</em></p>
<h3>ETYMOLOGY</h3>
<h4>
(Supplied by a Late Consumptive Usher to
a Grammar School)
</h4>
<p>
The pale Usher- threadbare in coat, heart,
body, and brain; I see him now. He was ever dusting his old lexicons
and grammars, with a queer handkerchief, mockingly embellished
with all the gay flags of all the known nations of the world.
He loved to dust his old grammars; it somehow mildly reminded
him of his mortality.
</p>
<blockquote>
"While you take in hand to school
others, and to teach them by what name a
<strong>whale-fish</strong> is to be called in our tongue leaving out, through ignorance,
the letter H, which almost alone
make<sup>th</sup> the signification of the word, you deliver that which is
not true. " <cite>HACKLUYT</cite>
</blockquote>
<ul>
<li>KETOS, Greek</li>
<li>CETUS, Latin</li>
<li>WHOEL, Anglo-Saxon</li>
<li>HVALT, Danish. WAL, Dutch</li>
<li>HWAL, Swedish</li>
<li>WHALE, Icelandic</li>
<li>WHALE, English</li>
<li>BALEINE, French</li>
</ul>
</body>
|
| |
More Pain and Horror |
| Whose Default
Is It? |
Browsers set defaults, including text size,
usually to:
Basic |
Default point size |
Rendered in pixels high |
| Windows |
12pt |
16px |
| Pre 1998 Macs |
12pt |
12px |
| 1998 + Macs |
12pt |
16px |
| Safari Mac browser |
12pt |
14px |
And users can do anything they want.
Defaults also can be set for all sorts of things, depending on the
browser. Including link colors, background colors, and proportional,
serif, sans-serif, and monospace fonts. Users can even force your
setting off.
|
| |
Forcing Presentation To Our (Evil) Will |
| Adding Attributes and properties |
Most tags can be modified with attributes and
properties. The big one is:
align=”left”
choices of “left”, “right”, “center”
|
| Controlling spacing Tighter Control |
You can grab tighter control of how your text
looks without stylesheets with Character Format tags:
<b> |
Bold |
<big> |
Big
Bigger Really Big Biggest
You can next up to 4 levels |
<i> |
Italic |
<small> |
Get small smaller really small
smallest. Nest-able in 2 levels.
Though there is a minimum size that will display |
<tt> |
Teletype.
Anybody remember those? I doubt it. |
Which to use?
<strong> or <b>
Strong has more power, but b is more direct. Your call, but you’ve
been warned. |
| Direct Font Control |
It’s deprecated, but you can use it for
now until we get into CSS.
You can force the browser to render the font you want and relative
size you want.
<font color=”black” face=”sans-serif”
size=”+1” >
Note that size is relative to the default font. |
| Size Matters |
Font sizes are all relative to the default
browser font. The available sizes are:
1 to 7, -1 to -7, +1 to +7
|
| About Face |
Consider the least common denominator when
considering faces. If you must have a specific face, use a bitmap.
|
| Elegant Degradation |
You can create a list of fonts in order of
preference. When the browser fails to find your first font, it looks
for the second, then the third, etc.
This is the common set of lists from Dreamweaver:
Arial,
Helvetica, sans-serif
Times
New Roman, Times, serif
Courier
New, Courier, mono
Georgia,
Times New Roman, Times, serif
Verdana,
Arial, Helvetica, sans-serif
Geneva,
Arial, Helvetica, sans-serif
|
| |
Let’s Be Forceful |
| Title |
<body>
<h1>
M<big>O<big>B<big>Y
D</big>I</big>C</big>K
</h1>
<h2>OR <i>THE</i>
WHALE</h2>
<p>
<em>by
<strong>Herman Melville</strong>
</em></p>
<h3>ETYMOLOGY</h3>
<h4><font face="san-serif"
color="#888888">
(Supplied by a Late Consumptive Usher to
a Grammar School)
</font></h4>
<p>
The pale Usher- threadbare in coat, heart,
body, and brain; I see him now. He was ever dusting his old lexicons
and grammars, with a queer handkerchief, mockingly embellished
with all the gay flags of all the known nations of the world.
He loved to dust his old grammars; it somehow mildly reminded
him of his mortality.
</p>
<blockquote><font
face="san-serif">
"While you take in hand to school
others, and to teach them by what name a
<tt><strong>whale-fish</strong></tt>
is to be called in our tongue leaving out, through ignorance,
the letter H, which almost alone
make <sup>th</sup> the signification of the word,
you deliver that which is not true. " <cite>HACKLUYT</cite>
</font></blockquote>
<ul>
<li>KETOS, Greek</li>
<li>CETUS, Latin</li>
<li>WHOEL, Anglo-Saxon</li>
<li>HVALT, Danish. WAL, Dutch</li>
<li>HWAL, Swedish</li>
<li>WHALE, Icelandic</li>
<li>WHALE, English</li>
<li>BALEINE, French</li>
</ul>
</body>
|
| |
Exercises |
| |
If you need some text, here’s some greeking
text.
|
| 1
A basic page
|
Build a web page that looks like this:

|
| 2
Work with content based tags
|
Build a page with a headline, 3 sets of subheads with at least
2 paragraphs under each subhead, only using content-structural tags
and using all of these:
<h1> <h2> <h3> <p> <ul> <blockquote>
<cite><em><strong>

|
| 3
Work with non content based tags
|
Build a third page like the one above, but throw in <b>,
<big>, <i>, <small>, <tt> as well.

If you've got that worked out, try nesting some of the tags!
|
| 4
Work with Special Characters
|
Make this using special characters:
Here's a listing.
Note the use of four non-breaking spaces after the exclamation
point and before “Hmpf.”
|
| Advanced
Lists
|
Build a page that shows the three different types of lists

Use this as a reference: http://www.w3schools.com/html/html_lists.asp
|
| |
|
 |
 |