Professional Documents
Culture Documents
Asyoutestyoursitewithactualusers.Wheredotheygetconfused?Aretheyableto dowhattheyneedtodo?
11
12
14
15
Butbeforewegetintocreatinganimagemap,Ineedtohighlightforyouthreethings aboutimagemaps.
16
17
18
Whatarealloftheattributesthatyouseeherewithintheareaelement?
19
Sothecoordinatesattributeiswithinthelargerareaelement.Asweknow,elements arecomposedwithvariousattributes. Whatarealloftheattributesthatyouseeherewithintheareaelement? Wehavetheshapeattribute,inthiscasethevalueofthatisdescriptiveoftheshape, i.e.,rectangle. Thecoordinatesattributehasthecoordinates.i.e.,thex,y,x,y,coordinatesofthe rectangularhotspot WealsohaveourHTMLreferencewhichiswilltakeouruserstothespecifiedlink locationforthathotspotontheimagemap. AndthealternatetextforthatHTMLreference.
20
21
Nowthatweknowwhatanimagemapiswecannowchataboutthedisadvantages. Yourtexttalksatlengthaboutthedisadvantagesofusingimagemaps. Whatifauserisblockingimages.Alwaysremember,theusercanchoose.Sowould youwanttoleaveaverykeypiecetoyoursitethattheusersneeddesignedwithinan imagemap?Iseestudentscreatetheirentirewebpagenavigationwithinanimage map.Thisisnotagoodideabecauseiftheiruserisblockingimagesthenhowwillthey navigatetheirsite? Remember.Ourdesignsshouldberesponsive.Iftheimageisreallylargewilltheybe abletoviewitontheiriPhoneandclickandutilizetheimagemap? Thisiswhyweshouldalwayskeepatextversionofthelinklocationssomewhereelsein thewebpagesothatthewebsitecanstillfunction.
22
23
24
Demousingimagemaps.com
25
26
27
28
ThinkoftheWDLCwhendesigningyourform.
30
31
Therearedifferenttypesofsites
32
33
34
35
36
37
38
39
40
41
42
43
44
Formsprovideinteractionbetweenauserandawebserver.Usersinteractwiththe formusing"inputcontrols,"e.g.,textboxes,radiobuttons,dropdownmenu,textarea, etc.Eachinputcontrolisdesignedforaspecificuseandifyouweretouseone incorrectlythenyourusermightbeconfused.Somakesurethatyoulearntheuseof eachoftheseasdescribedinyourtextbook. Alsonoticethedistinctionbetween"fontenddesign"ofHTMLformsand"backend development"ofHTMLforms.Forourpurposesinthiscoursewewillonlybefocusing onthefrontenddesignandhaveourforms"actions"submittoanemailaddress,i.e., "mailto:youremail@email.com"ratherthancommunicatingwithawebserver.Other courseswithinthedevelopmentcertificatewilldealwiththissubmissionmethodand theprograminglanguagesrequiredtodoso.Soouropeningformtagwillhavethe followingrequiredattributes:
45
Howmanytextfieldsdoyousee?
46
47
48
49
50
<p> Firstname:<inputname="first"type="text"/> Lastname:<inputname="last"type="text"/> <br/> Address:<inputname="address"type="text"/> City:<inputname="city"type="text"/> State:<inputname="state"type="text"/> Zip:<inputname="zip"type="text"/> <br/> Emailaddress:<inputname="email"type="text"/> </p>
51
52
<p> Firstname:<inputname="first"type="text"size="30"/> Lastname:<inputname="last"type="text"size="35"/> <br/> Address:<inputname="address"type="text"size="30"/> City:<inputname="city"type="text"size="15"/> State:<inputname="state"type="text"size="2" /> Zip:<inputname="zip"type="text"size="5"/> <br/> Emailaddress:<inputname="email"type="text"size="77"/> </p> Insertsomedataintotheformandclicktherefreshbutton.Noticehowthedatais stillthere.Thatisbecauseitisbeingstoredinyourbrowserscash.Soonwewilladd aresetbutton,butfornowifyouhavedatainthere,holddownCTRLandpressF5.
53
Noticehowwecanputasmuchinformationineachfiledthatwelike.Itisbestpractice tolimiteachfieldtoareasonablelengthsothattheuserdoesntinsert100characters inthestateareawhichcouldcauseproblemswiththeserver.Wecanadjustthe numberofcharactersauserenters(i.e.,userdata)withtheMaxLengthattribute. <p> Firstname:<inputname="first"type="text"size="30"maxlength="35"/> Lastname:<inputname="last"type="text"size="35"maxlength="40"/> <br/> Address:<inputname="address"type="text"size="30"maxlength="50"/> City:<inputname="city"type="text"size="15"maxlength="20"/> State:<inputname="state"type="text"size="2"maxlength="2"/> Zip:<inputname="zip"type="text"size="5"maxlength="5"/> <br/> Emailaddress:<inputname="email"type="text"size="77"maxlength="100"/> </p>
54
Howmanyradiobuttonsdoyousee?
55
56
Nowletsaddsomeadditionalinputcontrolstoourform.Wearegoingtoaddtwo radiobuttonsforuserstosaywhetherornottheyhaveseenamovie.Todothisweare goingtoaddanotherinputthathasboththenameandtypeattributes. Remember,thenameattributelabelsthedataforprocessing.Itcouldbecalled anything,butitshouldbedescriptivetothetypeofdatathattheuserisentering. Andthistimethetypeattributeisgoingtoberadio. Butwearealsogoingtoaddthevalueattribute. ValueAttribute isthedatathattheuserisselecting.Thisshouldbedescriptivetowhat theuserisselectingasitwillcategorizethedatawithinthenamecategorization. Itisimportanttonoteatthispointthataradiocontrollimitstheusertoonlyone ofthechoicesfromalistofchoices.
57
58
Howmanytextfieldsdoyousee?
59
60
61
62
Howmanytextfieldsdoyousee?
63
64
65
66
Ifyoudonotwantthefirstchoicechosenbydefault,intermsofdesignyoucouldput thewordchooseasanoption
67
68
69
Howmanytextfieldsdoyousee?
70
71
72
Nowletscreateatextareawheretheusercanaddadditionalcommentstotheir survey:
73
Wecouldprefilltheboxwithcontent:
74
75
76
77
78
79
80
81
85
86
87