Tutorial - Architecture, Design and Planning

advertisement
Tutorial 3: HTML continued
Today's tutorial will continue from last weeks', and introduce some more HTML tags. Please
read this document all the way 'through before you start.
The results of today's tutorial must be uploaded to:
http://www.arch.usyd.edu.au/~stud1234/deco2102/tute3/html.html
or
http://www.arch.usyd.edu.au/~stud1234/deco1200/tute3/html.html
A reminder of why you need to learn HTML. Here's what (for example) Microsoft Word does to
the simplest of documents, when converting it to HTML.
This:
This is a trivial amount of styled text..
is translated to HTML as this:
<html xmlns:v="urn:schemas-microsoft-com:vml"
xmlns:o="urn:schemas-microsoft-com:office:office"
xmlns:w="urn:schemas-microsoft-com:office:word"
xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=Content-Type content="text/html; charset=windows-1252">
<meta name=ProgId content=Word.Document>
<meta name=Generator content="Microsoft Word 11">
<meta name=Originator content="Microsoft Word 11">
<link rel=File-List
href="This%20is%20a%20trivial%20amount%20of%20text_files/filelist.xml">
<title>This is a trivial amount of text</title>
<!--[if gte mso 9]><xml>
<o:DocumentProperties>
<o:Author>sysman</o:Author>
<o:LastAuthor>sysman</o:LastAuthor>
<o:Revision>2</o:Revision>
<o:TotalTime>3</o:TotalTime>
<o:Created>2006-08-14T01:12:00Z</o:Created>
<o:LastSaved>2006-08-14T01:12:00Z</o:LastSaved>
<o:Pages>1</o:Pages>
<o:Words>5</o:Words>
<o:Characters>29</o:Characters>
<o:Company>usyd</o:Company>
<o:Lines>1</o:Lines>
<o:Paragraphs>1</o:Paragraphs>
<o:CharactersWithSpaces>33</o:CharactersWithSpaces>
<o:Version>11.6568</o:Version>
</o:DocumentProperties>
</xml><![endif]--><!--[if gte mso 9]><xml>
<w:WordDocument>
<w:SpellingState>Clean</w:SpellingState>
<w:GrammarState>Clean</w:GrammarState>
<w:PunctuationKerning/>
<w:ValidateAgainstSchemas/>
<w:SaveIfXMLInvalid>false</w:SaveIfXMLInvalid>
<w:IgnoreMixedContent>false</w:IgnoreMixedContent>
<w:AlwaysShowPlaceholderText>false</w:AlwaysShowPlaceholderText>
<w:Compatibility>
<w:BreakWrappedTables/>
<w:SnapToGridInCell/>
<w:WrapTextWithPunct/>
<w:UseAsianBreakRules/>
<w:DontGrowAutofit/>
</w:Compatibility>
<w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel>
</w:WordDocument>
</xml><![endif]--><!--[if gte mso 9]><xml>
<w:LatentStyles DefLockedState="false" LatentStyleCount="156">
</w:LatentStyles>
</xml><![endif]-->
<style>
<!-/* Font Definitions */
@font-face
{font-family:TechnicBold;
panose-1:0 0 4 0 0 0 0 0 0 0;
mso-font-charset:2;
mso-generic-font-family:auto;
mso-font-pitch:variable;
mso-font-signature:0 268435456 0 0 -2147483648 0;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{mso-style-parent:"";
margin:0cm;
margin-bottom:.0001pt;
mso-pagination:widow-orphan;
font-size:12.0pt;
font-family:"Times New Roman";
mso-fareast-font-family:"Times New Roman";}
h2
{mso-style-link:"Heading 2 Char";
mso-style-next:Normal;
margin-top:12.0pt;
margin-right:0cm;
margin-bottom:3.0pt;
margin-left:0cm;
mso-pagination:widow-orphan;
page-break-after:avoid;
mso-outline-level:2;
font-size:14.0pt;
font-family:Arial;
font-style:italic;}
span.Heading2Char
{mso-style-name:"Heading 2 Char";
mso-style-locked:yes;
mso-style-link:"Heading 2";
mso-ansi-font-size:14.0pt;
mso-bidi-font-size:14.0pt;
font-family:Arial;
mso-ascii-font-family:Arial;
mso-hansi-font-family:Arial;
mso-bidi-font-family:Arial;
mso-ansi-language:EN-US;
mso-fareast-language:EN-US;
mso-bidi-language:AR-SA;
font-weight:bold;
font-style:italic;}
@page Section1
{size:612.0pt 792.0pt;
margin:72.0pt 90.0pt 72.0pt 90.0pt;
mso-header-margin:35.4pt;
mso-footer-margin:35.4pt;
mso-paper-source:0;}
div.Section1
{page:Section1;}
-->
</style>
<!--[if gte mso 10]>
<style>
/* Style Definitions */
table.MsoNormalTable
{mso-style-name:"Table Normal";
mso-tstyle-rowband-size:0;
mso-tstyle-colband-size:0;
mso-style-noshow:yes;
mso-style-parent:"";
mso-padding-alt:0cm 5.4pt 0cm 5.4pt;
mso-para-margin:0cm;
mso-para-margin-bottom:.0001pt;
mso-pagination:widow-orphan;
font-size:10.0pt;
font-family:"Times New Roman";
mso-ansi-language:#0400;
mso-fareast-language:#0400;
mso-bidi-language:#0400;}
</style>
<![endif]--><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="2050"/>
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1"/>
</o:shapelayout></xml><![endif]-->
</head>
<body lang=EN-US style='tab-interval:36.0pt'>
<div class=Section1>
<p class=MsoNormal><b style='mso-bidi-font-weight:normal'><span
style='font-size:24.0pt'>This</span></b> is <span class=Heading2Char><span
style='font-size:14.0pt'>a trivial</span></span> amount <b><span
style='font-size:24.0pt;mso-bidi-font-size:12.0pt'>of</span></b> <span
style='font-size:26.0pt;font-family:TechnicBold'>text</span>.</p>
</div>
</body>
</html>
Sad, isn't it? The power of learning HTML yourself is that as an intelligent Human being, as
opposed to a computer program, you are able to bring your design intent to the task of creating a
page, rather than simply slavishly following translation rules.
Now that's out of the way, let's move on to today's tutorial. I want you to study the tags listed
below. You can use Dreamweaver's Reference feature (Shift-F1) to look them up, or else use
www.htmlhelp.com, or any number of online references. htmlhelp.com also has a downloadable
reference, which is handy. Download it to your HTML-enabled mobile phone today!
Read the reference for each tag, paying special attention to the ones marked in bold. I don't expect
you to learn the syntax of all of them all by heart, just that you remember that they exist, and
consider the implications of designing with them.
Once you've done this, your task is to create a web page that utilises each of the tags marked in
bold. This is no way to design of course- an analogy here would be that just because you have a lot
of Photoshop filters, this doesn't mean you have to use each and every one in a single picture.
However, what you're doing today is an exercise, and as such can be forgiven for being.. scholastic.
I want you to think carefully about the tags you can use to increase the accessibility of your
designs. The <ABBR> and <ACRONYM> tags are helpful here. A quick exercise: Find out how
many disabled people there are on our planet. The answer may surprise you. Here's a good article:
http://www.htmlhelp.com/feature/art3.htm
When not used properly, tags that provide for alternative 'viewing' methods can go horribly wrong:
http://www.htmlhelp.com/feature/art3.htm#howlers
For today's exercise, you'll want some text to play with. You'll find some on the next page. It's a
short story that took me ages- 10 minutes, to write. But in the spirit of constraints, I tried to not
mention gender.
When you're finished, please upload the result to the location mentioned above. Try to be as
creative as possible when using the tags- think of the ways you can uses them- there are plenty of
opportunities in the story to do so.
Ursula Le Guin
Once upon a time there was a robot named "Bob". Bob was a modest robot, built
from recycled garbage, and an ancient 6502 microprocessor for a brain. However,
Bob was special- Bob's single discerning feature was an actual working Human
heart. Don't be confused by this- Bob didn't have a "soul" – the Human heart's
function was to pump nutrient fluids around Bob's systems.
Occasionally people would stare at Bob, and wonder how such a ridiculously
ramshackle robot could even stand on two appendages, let alone perform the
standard tasks that robots of the time were expected to do. Bob would respond
to this behaviour in the only way that was appropriate- by jettisoning large
quantities of lubricating oil from a venting port. This looked a lot like
someone having an embarrassing accident, a comparison that was not lost on the
people doing the staring. For all of these faults, Bob was still a nice robot.
Bob's chassis was fitted with: 1. A thermonuclear pile, 2. A gaseous exchange
reactor, 3. A single crystal of quartz. Bob's energy systems were regulated by
an Energy Activated Regulator Link.
One day Bob was happened
engineering students who
number of upgrades right
fingered claw, occluding
upon by a group of three first year electrical
thought it would be a brilliant idea to install a
then and there. They lurched towards him like a threethe Sun and casting a dark shadow over Bob's framework.
"Hey, look at the rickety old robot" said one. "Check out the ancient brain
pan" said another. "Let's get it!" said the third.
Bob's snaillike brain crunched into action, admittedly more quickly than the
wetware of the students, but unfortunately not fast enough to prevent them from
grabbing a vital piece of Bob's architecture- the Human heart! They wrenched it
from its chassis, and flung it across the road, stopping only to replace it with
a solar powered radio. "He who laughs last, laughs last".
Bob lurched backwards, unable to compute what had just occurred, when something
miraculous happened. The radio's electromagnetic energy fused with Bob's
internal systems, resulting in an electrothermalitic reaction that knocked the
installers on their bottoms. Bob rose up above them, and returned the shadowing
favour. Towering far above them on solenoidal stilts, Bob's speech synthesiser
engaged and said "Thought you'd perform some upgrades, hmmm? Well, now it's my
turn!"
The three first year electrical engineering students all had embarrassing
accidents.
Back to top of story
A-Z of HTML 4.0
Please study the entries marked in bold. This list was obtained from:
http://www.htmlhelp.com/reference/html40/
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
A - Anchor
ABBR - Abbreviation
ACRONYM - Acronym
ADDRESS - Address
APPLET - Java applet
AREA - Image map region
B - Bold text
BASE - Document base URI
BASEFONT - Base font change
BDO - BiDi override
BIG - Large text
BLOCKQUOTE - Block quotation
BODY - Document body
BR - Line break
BUTTON - Button
CAPTION - Table caption
CENTER - Centered block
CITE - Citation
CODE - Computer code
COL - Table column
COLGROUP - Table column group
DD - Definition description
DEL - Deleted text
DFN - Defined term
DIR - Directory list
DIV - Generic block-level container
DL - Definition list
DT - Definition term
EM - Emphasis
FIELDSET - Form control group
FONT - Font change
FORM - Interactive form
FRAME - Frame
FRAMESET - Frameset
H1 - Level-one heading
H2 - Level-two heading
H3 - Level-three heading
H4 - Level-four heading
H5 - Level-five heading
H6 - Level-six heading
HEAD - Document head
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
HR - Horizontal rule
HTML - HTML document
I - Italic text
IFRAME - Inline frame
IMG - Inline image
INPUT - Form input
INS - Inserted text
ISINDEX - Input prompt
KBD - Text to be input
LABEL - Form field label
LEGEND - Fieldset caption
LI - List item
LINK - Document relationship
MAP - Image map
MENU - Menu list
META - Metadata
NOFRAMES - Frames alternate content
NOSCRIPT - Alternate script content
OBJECT - Object
OL - Ordered list
OPTGROUP - Option group
OPTION - Menu option
P - Paragraph
PARAM - Object parameter
PRE - Preformatted text
Q - Short quotation
S - Strike-through text
SAMP - Sample output
SCRIPT - Client-side script
SELECT - Option selector
SMALL - Small text
SPAN - Generic inline container
STRIKE - Strike-through text
STRONG - Strong emphasis
STYLE - Embedded style sheet
SUB - Subscript
SUP - Superscript
TABLE - Table
TBODY - Table body
TD - Table data cell
TEXTAREA - Multi-line text input
TFOOT - Table foot
TH - Table header cell
THEAD - Table head
TITLE - Document title
TR - Table row
!
!
!
!
TT - Teletype text
U - Underlined text
UL - Unordered list
VAR - Variable
Download