Beruflich Dokumente
Kultur Dokumente
Asyoutestyoursitewithactualusers.Wheredotheygetconfused?Aretheyabletodo whattheyneedtodo?
11
12
14
15
Butbeforewegetintocreatinganimagemap,Ineedtohighlightforyouthreethings aboutimagemaps.
16
17
18
Whatarealloftheattributesthatyouseeherewithintheareaelement?
19
Sothecoordinatesattributeiswithinthelargerareaelement.Asweknow,elementsare composedwithvariousattributes. Whatarealloftheattributesthatyouseeherewithintheareaelement? Wehavetheshapeattribute,inthiscasethevalueofthatisdescriptiveoftheshape,i.e., rectangle. Thecoordinatesattributehasthecoordinates.i.e.,thex,y,x,y,coordinatesofthe rectangularhotspot WealsohaveourHTMLreferencewhichiswilltakeouruserstothespecifiedlinklocation forthathotspotontheimagemap. AndthealternatetextforthatHTMLreference.
20
21
Nowthatweknowwhatanimagemapiswecannowchataboutthedisadvantages.Your texttalksatlengthaboutthedisadvantagesofusingimagemaps. Whatifauserisblockingimages.Alwaysremember,theusercanchoose.Sowouldyou wanttoleaveaverykeypiecetoyoursitethattheusersneeddesignedwithinanimage map?Iseestudentscreatetheirentirewebpagenavigationwithinanimagemap.Thisis notagoodideabecauseiftheiruserisblockingimagesthenhowwilltheynavigatetheir site? Remember.Ourdesignsshouldberesponsive.Iftheimageisreallylargewilltheybeable toviewitontheiriPhoneandclickandutilizetheimagemap? Thisiswhyweshouldalwayskeepatextversionofthelinklocationssomewhereelsein thewebpagesothatthewebsitecanstillfunction.
22
23
24
Demousingimagemaps.com
25
26
27
28
Formsprovideinteractionbetweenauserandawebserver.Usersinteractwiththeform using"inputcontrols,"e.g.,textboxes,radiobuttons,dropdownmenu,textarea,etc.Each inputcontrolisdesignedforaspecificuseandifyouweretouseoneincorrectlythenyour usermightbeconfused.Somakesurethatyoulearntheuseofeachoftheseasdescribed inyourtextbook. Alsonoticethedistinctionbetween"fontenddesign"ofXHTMLformsand"backend development"ofXHTMLforms.Forourpurposesinthiscoursewewillonlybefocusingon thefrontenddesignandhaveourforms"actions"submittoanemailaddress,i.e., "mailto:youremail@email.com"ratherthancommunicatingwithawebserver.Other courseswithinthedevelopmentcertificatewilldealwiththissubmissionmethodandthe programinglanguagesrequiredtodoso.Soouropeningformtagwillhavethefollowing requiredattributes:
29
Howmanytextfieldsdoyousee?
30
31
32
33
34
<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>
35
36
<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.Noticehowthedataisstill there.Thatisbecauseitisbeingstoredinyourbrowserscash.Soonwewilladdareset button,butfornowifyouhavedatainthere,holddownCTRLandpressF5.
37
Noticehowwecanputasmuchinformationineachfiledthatwelike.Itisbestpracticeto limiteachfieldtoareasonablelengthsothattheuserdoesntinsert100charactersinthe stateareawhichcouldcauseproblemswiththeserver.Wecanadjustthenumberof charactersauserenters(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>
38
Howmanytextfieldsdoyousee?
39
40
Nowletsaddsomeadditionalinputcontrolstoourform.Wearegoingtoaddtworadio buttonsforuserstosaywhetherornottheyhaveseenamovie.Todothiswearegoingto addanotherinputthathasboththenameandtypeattributes. Remember,thenameattributelabelsthedataforprocessing.Itcouldbecalledanything, butitshouldbedescriptivetothetypeofdatathattheuserisentering. Andthistimethetypeattributeisgoingtoberadio. Butwearealsogoingtoaddthevalueattribute. ValueAttribute isthedatathattheuserisselecting.Thisshouldbedescriptivetowhatthe userisselectingasitwillcategorizethedatawithinthenamecategorization. Itisimportanttonoteatthispointthataradiocontrollimitstheusertoonlyoneof thechoicesfromalistofchoices.
41
42
Howmanytextfieldsdoyousee?
43
44
45
46
Howmanytextfieldsdoyousee?
47
48
49
50
Ifyoudonotwantthefirstchoicechosenbydefault,intermsofdesignyoucouldputthe wordchooseasanoption
51
52
53
Howmanytextfieldsdoyousee?
54
55
56
Nowletscreateatextareawheretheusercanaddadditionalcommentstotheirsurvey:
57
Wecouldprefilltheboxwithcontent:
58
59
60
61
62
63
64
65
69
70