coap 2000 fall 1 2013 creating web pages with image maps & forms (dave hallmon) webster university...

Upload: dave-hallmon

Post on 14-Apr-2018

214 views

Category:

Documents


0 download

TRANSCRIPT

  • 7/29/2019 COAP 2000 Fall 1 2013 Creating Web Pages with Image Maps & Forms (Dave Hallmon) Webster University Week 5 Lesson Fall1 2013

    1/87

  • 7/29/2019 COAP 2000 Fall 1 2013 Creating Web Pages with Image Maps & Forms (Dave Hallmon) Webster University Week 5 Lesson Fall1 2013

    2/87

  • 7/29/2019 COAP 2000 Fall 1 2013 Creating Web Pages with Image Maps & Forms (Dave Hallmon) Webster University Week 5 Lesson Fall1 2013

    3/87

    AListApartisagreatblogfor"peoplewhomakewebsites."Itexploresthedesign,

    development,andmeaningofwebcontent,withaspecialfocusonwebstandardsand

    bestpractices.ThisweekspostisalittleCSSheavybutthepointsthatIwanteveryone

    towalkawaywiththetheoverarchingtheme,i.e.,separatingthecontentfromthe

    visualdesign.Thisisanimportantthingtothinkaboutasweareallgettingstarted

    workingon

    our

    movie

    genre

    fan

    websites.

  • 7/29/2019 COAP 2000 Fall 1 2013 Creating Web Pages with Image Maps & Forms (Dave Hallmon) Webster University Week 5 Lesson Fall1 2013

    4/87

  • 7/29/2019 COAP 2000 Fall 1 2013 Creating Web Pages with Image Maps & Forms (Dave Hallmon) Webster University Week 5 Lesson Fall1 2013

    5/87

    Ifyouaregoingtocreateawebsitemakesurethatitissomethingthatwillactually

    helpsolveaproblemfortheuser.Thisthenisessentiallythepurposeofthewebsite.ThenthesolepurposeofthewebsiteistomakesurethattheusercandoX.Thatiswhy

    thewebsiteisthereinthefirstplace.Thenknowingthiswecanleverageourentire

    designandfunctionalitybasedonthatpurpose.

    Thisthenallowsustoconsiderhowthewebsitefunctionsasameansofsolvingthe

    problemoransweringaquestion, ratherthanjusthavingcoolfunctionalityfor

    functionalitysake.

    Readquoteonslide

  • 7/29/2019 COAP 2000 Fall 1 2013 Creating Web Pages with Image Maps & Forms (Dave Hallmon) Webster University Week 5 Lesson Fall1 2013

    6/87

    Restassuredthatwearenowinthehomestretchwithgettingoursitescompleted,but

    atthesametimeneedingtomakesurethatoursitesareinfactcompleted.Whenwe

    gettothispointweneedtomakesurethatyoursitedoeswhatitneedstodo.

    Specificallyitneedstobetestedanddeterminewhatneedstobechangedsothatthey

    candowhattheyneedtodo.Forexample,howwillyourtargetaudiencewanttonavigateyoursite?Byknowingthis,youcanfinetunethesitesfunctionality.Therecouldbebarriersthatyoumightnotofmeanttobeputupthatwouldneedtobetaken

    down.

  • 7/29/2019 COAP 2000 Fall 1 2013 Creating Web Pages with Image Maps & Forms (Dave Hallmon) Webster University Week 5 Lesson Fall1 2013

    7/87

    Validatingourwebpagesisanimportantstep,whichcandramaticallyhelpimproveand

    ensuringthequalityofoursitesanditcansavealotoftimeandmoney.Validationis,

    however,neitherafullqualitycheck,norisitstrictlyequivalenttocheckingfor

    conformancetothespecification.

    Thepointofallofthesequestionsbelowistoensurethattheuser'sexperienceis

    effortlesssothattheycangetwhattheyneed.Rememberitisalwaysabouttheuser.

  • 7/29/2019 COAP 2000 Fall 1 2013 Creating Web Pages with Image Maps & Forms (Dave Hallmon) Webster University Week 5 Lesson Fall1 2013

    8/87

    Oftenthingscomeupatthistimelikecompatibilityissues(viewingdifferencesbetween

    differentwebbrowsers)andweneedtoensurethatourwebsitesareoptimizedtobe

    viewedproperlyinthemostrecentbrowserversions.

  • 7/29/2019 COAP 2000 Fall 1 2013 Creating Web Pages with Image Maps & Forms (Dave Hallmon) Webster University Week 5 Lesson Fall1 2013

    9/87

  • 7/29/2019 COAP 2000 Fall 1 2013 Creating Web Pages with Image Maps & Forms (Dave Hallmon) Webster University Week 5 Lesson Fall1 2013

    10/87

    So,don'tthrowoutthebabywiththebathwater!Thedatathatyougatheredwiththe

    clientinthoseearlyphasesissocrucial!Evenaswearereviewingandtestingoursites.

    Don'tthrowitout!

  • 7/29/2019 COAP 2000 Fall 1 2013 Creating Web Pages with Image Maps & Forms (Dave Hallmon) Webster University Week 5 Lesson Fall1 2013

    11/87

    Asyoutestyoursitewithactualusers.Wheredotheygetconfused?Aretheyableto

    dowhattheyneedtodo?

    11

  • 7/29/2019 COAP 2000 Fall 1 2013 Creating Web Pages with Image Maps & Forms (Dave Hallmon) Webster University Week 5 Lesson Fall1 2013

    12/87

    Remember.Thecontentiswhattheuserwants.Itiswhattheyneed.Iftheycantfindit

    ordontbelieveinittheyhitthebackbuttonandgosomewhereelse.

    Theirexperiencewiththecontentislargelydeterminedwithinthefirst10seconds.

    Thedesignofthesiteiswhatslapstheuserinthefaceassoonastheyaccessthesite.

    Andthenthefunctionalityiswhattheuserhastodotogetwhattheywant.

    12

  • 7/29/2019 COAP 2000 Fall 1 2013 Creating Web Pages with Image Maps & Forms (Dave Hallmon) Webster University Week 5 Lesson Fall1 2013

    13/87

    DontforgetthatourWebDevelopmentLifeCycleisaprocessthatallowsustogoback

    andforth.Itdoescostmoremoneytogobackwards,butsometimesthathasto

    happen.Thekeyismakingsurethattheusergetswhattheyneed.Soifyoudidgetyour

    cartbeforeyourhorseyoumayhavetoredosomethings.

    Thisclassisasimulation.Butbesurethatyourememberthesewarningsinthefuture

    whenyouareworkinginafirmorhandlingafutureclientsasafreelancer.

  • 7/29/2019 COAP 2000 Fall 1 2013 Creating Web Pages with Image Maps & Forms (Dave Hallmon) Webster University Week 5 Lesson Fall1 2013

    14/87

    14

  • 7/29/2019 COAP 2000 Fall 1 2013 Creating Web Pages with Image Maps & Forms (Dave Hallmon) Webster University Week 5 Lesson Fall1 2013

    15/87

    Letschatalittleaboutimagemapsandhowwewillbeusingthemhereinthiscourse.

    Wearegoingtobecreatingimagemapsforrectangularobjectstoday.Yourtexthasan

    entirechapterdevotedtocreatingthesefromscratchandfindingthecoordinates

    yourself.Asyoumayknow.Iamabigfanoflazy.Soittherearewaystomakethings

    easierforusbutatthesametimelearnwhatweneedtolearnIwillteachusthat

    method.

    15

  • 7/29/2019 COAP 2000 Fall 1 2013 Creating Web Pages with Image Maps & Forms (Dave Hallmon) Webster University Week 5 Lesson Fall1 2013

    16/87

    Butbeforewegetintocreatinganimagemap,Ineedtohighlightforyouthreethings

    aboutimagemaps.

    16

  • 7/29/2019 COAP 2000 Fall 1 2013 Creating Web Pages with Image Maps & Forms (Dave Hallmon) Webster University Week 5 Lesson Fall1 2013

    17/87

    Ourimagesarerectangularimages.Thetopleftcorneris(0,0).Ourtextdiscussesthe

    processforcreatingimagemapsthatarecirclesandpolygons.Foracircleyouwould

    needtoknowtheradiusandthexaxisfortheedgeofthecircle.Forapolygon,you

    wouldneedtoknowthecoordinatesforalloftheedges.

    17

  • 7/29/2019 COAP 2000 Fall 1 2013 Creating Web Pages with Image Maps & Forms (Dave Hallmon) Webster University Week 5 Lesson Fall1 2013

    18/87

    Todefinetheshapeweneedtoknowthetoprightcorneroftheimageandthebottom

    rightcorneroftheimage.Thesyntaxofthenewimagemapelementwillincludethe

    coordinateattributeandthenvalueoftheattributewillbethecoordinatesforthose

    twopoints.

    18

  • 7/29/2019 COAP 2000 Fall 1 2013 Creating Web Pages with Image Maps & Forms (Dave Hallmon) Webster University Week 5 Lesson Fall1 2013

    19/87

    Whatarealloftheattributesthatyouseeherewithintheareaelement?

    19

  • 7/29/2019 COAP 2000 Fall 1 2013 Creating Web Pages with Image Maps & Forms (Dave Hallmon) Webster University Week 5 Lesson Fall1 2013

    20/87

    Sothecoordinatesattributeiswithinthelargerareaelement.Asweknow,elements

    arecomposedwithvariousattributes.

    Whatarealloftheattributesthatyouseeherewithintheareaelement?Wehavetheshapeattribute,inthiscasethevalueofthatisdescriptiveoftheshape,

    i.e.,rectangle.

    Thecoordinatesattributehasthecoordinates.i.e.,thex,y,x,y,coordinatesofthe

    rectangularhotspot

    WealsohaveourHTMLreferencewhichiswilltakeouruserstothespecifiedlink

    locationforthathotspotontheimagemap.

    AndthealternatetextforthatHTMLreference.

    20

  • 7/29/2019 COAP 2000 Fall 1 2013 Creating Web Pages with Image Maps & Forms (Dave Hallmon) Webster University Week 5 Lesson Fall1 2013

    21/87

    Dontforgetthatwecanalsohaveelementswithinelements.Inthiscase,ourarea

    elementiswithinthemapelement.Wealsohavetogiveourelementaname.Inthis

    casethephotothatIamgoingtouseisacollage,soIgavethemapnamecollage.

    Thecollage

    of

    images

    will

    allow

    users

    to

    click

    on

    the

    various

    images

    within

    the

    collage

    whichwillthentakethemtovariouswebsites.

    Wealsoneedtogiveitanidwhichwetalkedalittleaboutlastweek.Forour

    purposes,wewilljustputmap.

    Thisisallwithinthemapelement.

    21

  • 7/29/2019 COAP 2000 Fall 1 2013 Creating Web Pages with Image Maps & Forms (Dave Hallmon) Webster University Week 5 Lesson Fall1 2013

    22/87

    Nowthatweknowwhatanimagemapiswecannowchataboutthedisadvantages.

    Yourtexttalksatlengthaboutthedisadvantagesofusingimagemaps.

    Whatifauserisblockingimages.Alwaysremember,theusercanchoose.Sowouldyou

    want

    to

    leave

    avery

    key

    piece

    to

    your

    site

    that

    the

    users

    need

    designed

    within

    an

    imagemap?Iseestudentscreatetheirentirewebpagenavigationwithinanimage

    map.Thisisnotagoodideabecauseiftheiruserisblockingimagesthenhowwillthey

    navigatetheirsite?

    Remember.Ourdesignsshouldberesponsive.Iftheimageisreallylargewilltheybe

    abletoviewitontheiriPhoneandclickandutilizetheimagemap?

    Thisiswhyweshouldalwayskeepatextversionofthelinklocationssomewhereelsein

    thewebpagesothatthewebsitecanstillfunction.

    22

  • 7/29/2019 COAP 2000 Fall 1 2013 Creating Web Pages with Image Maps & Forms (Dave Hallmon) Webster University Week 5 Lesson Fall1 2013

    23/87

    Yourtextalsotalksaboutthedifferencesbetweenserverandclientsiteimagemaps.In

    thiscourseandthewaythatwehaveaccesstoourWebsterserver,Labwebs(moreon

    thatinabit)wearenotreallyabletodoalotwithserverscriptsandsuch.Other

    coursesinthedevelopmentcertificatewillgetintothatmore.

    Soforourpurposeswewillbecreatingclientsideimagemaps.Thisiswherethe

    clientsbrowser,i.e.,theusersbrowserdoesallofthework.

    23

  • 7/29/2019 COAP 2000 Fall 1 2013 Creating Web Pages with Image Maps & Forms (Dave Hallmon) Webster University Week 5 Lesson Fall1 2013

    24/87

    Thistooldoeslookalittledated.IamalwaysafraidthatIamgoingtogetreadyfor

    teachingthisclasstofindthatthistoolisnolongeravailablebutitisstillherekicking.

    Youaregoingtoseesomeadvertisementsandthecodethatitwritesforuswillbe

    puttingin

    some

    erroneous

    things

    that

    Iwill

    show

    us

    how

    to

    remove.

    This

    is

    common

    for

    freestuffonthenet,e.g.,embeddingslideshows,socialmedia,etc.

    WhenyouareeveronsiteslikethisIwouldalsobecarefulaboutclickingon

    advertisementsandsuchintermsofmalwareandspyware.

    24

  • 7/29/2019 COAP 2000 Fall 1 2013 Creating Web Pages with Image Maps & Forms (Dave Hallmon) Webster University Week 5 Lesson Fall1 2013

    25/87

    Demousingimagemaps.com

    25

  • 7/29/2019 COAP 2000 Fall 1 2013 Creating Web Pages with Image Maps & Forms (Dave Hallmon) Webster University Week 5 Lesson Fall1 2013

    26/87

    26

  • 7/29/2019 COAP 2000 Fall 1 2013 Creating Web Pages with Image Maps & Forms (Dave Hallmon) Webster University Week 5 Lesson Fall1 2013

    27/87

    Itisimportanttonotetheformsarearequiredfeatureofyourtermprojectand

    studentsusuallyputthemonacontactpage.Perhapssetitupforyourusersto

    contactyouwithaquestiontheymayhaveorperhapssomethingmorecreative.

    Whatyou

    see

    here

    is

    just

    the

    very

    basic

    structure

    of

    the

    makeup

    that

    we

    will

    write

    to

    createaform.Allofitiscontainedwithinaformelement.Withinitwewillhave

    differentinputcontrolsthatwillallowtheusertoinputtheirinformationand

    inevitablysubmit.

    27

  • 7/29/2019 COAP 2000 Fall 1 2013 Creating Web Pages with Image Maps & Forms (Dave Hallmon) Webster University Week 5 Lesson Fall1 2013

    28/87

    28

  • 7/29/2019 COAP 2000 Fall 1 2013 Creating Web Pages with Image Maps & Forms (Dave Hallmon) Webster University Week 5 Lesson Fall1 2013

    29/87

    ThinkoftheWDLCwhendesigningyourform.

  • 7/29/2019 COAP 2000 Fall 1 2013 Creating Web Pages with Image Maps & Forms (Dave Hallmon) Webster University Week 5 Lesson Fall1 2013

    30/87

    30

  • 7/29/2019 COAP 2000 Fall 1 2013 Creating Web Pages with Image Maps & Forms (Dave Hallmon) Webster University Week 5 Lesson Fall1 2013

    31/87

    31

  • 7/29/2019 COAP 2000 Fall 1 2013 Creating Web Pages with Image Maps & Forms (Dave Hallmon) Webster University Week 5 Lesson Fall1 2013

    32/87

    Therearedifferenttypesofsites

    32

  • 7/29/2019 COAP 2000 Fall 1 2013 Creating Web Pages with Image Maps & Forms (Dave Hallmon) Webster University Week 5 Lesson Fall1 2013

    33/87

    Whenwedesignwebsitesweshouldbecreatingsomethingthatsatisfiestheneedsfor

    boththeclientandtheuser.Forthepurposesofthiscoursewearemostlythinking

    abouttheuser.

    Weshouldalwayshaveafirmunderstandofoursites goals.Thisinformationoftenwill

    comefromtheclient.Whydoestheclientwantitonline?Forthepurposesofthiscourse,weareourownclients.Anotherkeyelementtoknowhereiswhatarethe

    userssupposedtodo?BuyingthebandsCDs,findingtheirconcerts,readingtheir

    recentnews,ordiscussingonthemessageboard?Theclientwillhelpusunderstand

    whichgoalisthemostimportant.Knowingthiswilldrivetheorganizationofthesite.

    33

  • 7/29/2019 COAP 2000 Fall 1 2013 Creating Web Pages with Image Maps & Forms (Dave Hallmon) Webster University Week 5 Lesson Fall1 2013

    34/87

    34

  • 7/29/2019 COAP 2000 Fall 1 2013 Creating Web Pages with Image Maps & Forms (Dave Hallmon) Webster University Week 5 Lesson Fall1 2013

    35/87

    35

  • 7/29/2019 COAP 2000 Fall 1 2013 Creating Web Pages with Image Maps & Forms (Dave Hallmon) Webster University Week 5 Lesson Fall1 2013

    36/87

    36

  • 7/29/2019 COAP 2000 Fall 1 2013 Creating Web Pages with Image Maps & Forms (Dave Hallmon) Webster University Week 5 Lesson Fall1 2013

    37/87

    37

  • 7/29/2019 COAP 2000 Fall 1 2013 Creating Web Pages with Image Maps & Forms (Dave Hallmon) Webster University Week 5 Lesson Fall1 2013

    38/87

    38

  • 7/29/2019 COAP 2000 Fall 1 2013 Creating Web Pages with Image Maps & Forms (Dave Hallmon) Webster University Week 5 Lesson Fall1 2013

    39/87

    39

  • 7/29/2019 COAP 2000 Fall 1 2013 Creating Web Pages with Image Maps & Forms (Dave Hallmon) Webster University Week 5 Lesson Fall1 2013

    40/87

    40

  • 7/29/2019 COAP 2000 Fall 1 2013 Creating Web Pages with Image Maps & Forms (Dave Hallmon) Webster University Week 5 Lesson Fall1 2013

    41/87

    41

  • 7/29/2019 COAP 2000 Fall 1 2013 Creating Web Pages with Image Maps & Forms (Dave Hallmon) Webster University Week 5 Lesson Fall1 2013

    42/87

    Allofthesethingsshouldaddvaluetotheusersexperience.Ifitisntaddingvaluethen

    whatisitdoing?Itisdistractingthem.

    Soyes.Ifyoufindsomethingthatisdistractingyouavoiditlikeanadvertisement.You

    closethe

    window,

    hit

    the

    back

    button,

    and

    move

    on

    42

  • 7/29/2019 COAP 2000 Fall 1 2013 Creating Web Pages with Image Maps & Forms (Dave Hallmon) Webster University Week 5 Lesson Fall1 2013

    43/87

    Remember.Thecontentiswhattheuserwants.Itiswhattheyneed.Iftheycantfindit

    ordontbelieveinittheyhitthebackbuttonandgosomewhereelse.

    Theirexperiencewiththecontentislargelydeterminedwithinthefirst10seconds.

    Thedesignofthesiteiswhatslapstheuserinthefaceassoonastheyaccessthesite.

    Andthenthefunctionalityiswhattheuserhastodotogetwhattheywant.

    43

  • 7/29/2019 COAP 2000 Fall 1 2013 Creating Web Pages with Image Maps & Forms (Dave Hallmon) Webster University Week 5 Lesson Fall1 2013

    44/87

    44

  • 7/29/2019 COAP 2000 Fall 1 2013 Creating Web Pages with Image Maps & Forms (Dave Hallmon) Webster University Week 5 Lesson Fall1 2013

    45/87

    Formsprovideinteractionbetweenauserandawebserver.Usersinteractwiththe

    formusing"inputcontrols,"e.g.,textboxes,radiobuttons,dropdownmenu,textarea,

    etc.Eachinputcontrolisdesignedforaspecificuseandifyouweretouseoneincorrectlythenyourusermightbeconfused.Somakesurethatyoulearntheuseofeachoftheseasdescribedinyourtextbook.Alsonoticethedistinctionbetween"fontenddesign"ofHTMLformsand"backend

    development"ofHTMLforms.Forourpurposesinthiscoursewewillonlybefocusing

    onthefrontenddesignandhaveourforms"actions"submittoanemailaddress,i.e.,"mailto:[email protected]" ratherthancommunicatingwithawebserver.Othercourseswithinthedevelopmentcertificatewilldealwiththissubmissionmethodand

    theprograminglanguagesrequiredtodoso.Soouropeningformtagwillhavethe

    followingrequiredattributes:

    45

  • 7/29/2019 COAP 2000 Fall 1 2013 Creating Web Pages with Image Maps & Forms (Dave Hallmon) Webster University Week 5 Lesson Fall1 2013

    46/87

    Howmanytextfieldsdoyousee?

    46

  • 7/29/2019 COAP 2000 Fall 1 2013 Creating Web Pages with Image Maps & Forms (Dave Hallmon) Webster University Week 5 Lesson Fall1 2013

    47/87

    47

  • 7/29/2019 COAP 2000 Fall 1 2013 Creating Web Pages with Image Maps & Forms (Dave Hallmon) Webster University Week 5 Lesson Fall1 2013

    48/87

    Whatweneedtodoisaddsomeuniquetextdatafieldsforourusertoinputtheir

    contactinformation.Whileyourbookdoesntmentionit,whendesigningaformitiskeytocreateeachdatafieldwithonevariableofuniquespecificinformation. Forexample,therearedisadvantagestocreatingafieldwiththeusersfirstandlastname.

    Thiswouldmakethingsdifficultforqueriesmadetothedatabase,searching,etc.

    48

  • 7/29/2019 COAP 2000 Fall 1 2013 Creating Web Pages with Image Maps & Forms (Dave Hallmon) Webster University Week 5 Lesson Fall1 2013

    49/87

    49

  • 7/29/2019 COAP 2000 Fall 1 2013 Creating Web Pages with Image Maps & Forms (Dave Hallmon) Webster University Week 5 Lesson Fall1 2013

    50/87

    50

  • 7/29/2019 COAP 2000 Fall 1 2013 Creating Web Pages with Image Maps & Forms (Dave Hallmon) Webster University Week 5 Lesson Fall1 2013

    51/87

    Firstname:

    Lastname:

    Address:

    City:

    State:

    Zip:

    Emailaddress:

    51

  • 7/29/2019 COAP 2000 Fall 1 2013 Creating Web Pages with Image Maps & Forms (Dave Hallmon) Webster University Week 5 Lesson Fall1 2013

    52/87

    52

  • 7/29/2019 COAP 2000 Fall 1 2013 Creating Web Pages with Image Maps & Forms (Dave Hallmon) Webster University Week 5 Lesson Fall1 2013

    53/87

    Lookatoursimpleforminthebrowser.Ifwedonotspecifythelengthoftheinput

    fields,theywilldefaulttothesesizeswhichis20.Wecanadjusttheirsizewiththe

    sizeattributetoincreasethedesignoftheform:

    Firstname:

    Lastname:

    Address:

    City:

    State:

    Zip:

    Emailaddress:

    Insertsomedataintotheformandclicktherefreshbutton.Noticehowthedataisstillthere.Thatisbecauseitisbeingstoredinyourbrowserscash.Soonwewilladdaresetbutton,butfornowifyouhavedatainthere,holddownCTRLandpressF5.

    53

  • 7/29/2019 COAP 2000 Fall 1 2013 Creating Web Pages with Image Maps & Forms (Dave Hallmon) Webster University Week 5 Lesson Fall1 2013

    54/87

    Noticehowwecanputasmuchinformationineachfiledthatwelike.Itisbestpractice

    tolimiteachfieldtoareasonablelengthsothattheuserdoesntinsert100characters

    inthestateareawhichcouldcauseproblemswiththeserver.Wecanadjustthe

    numberofcharactersauserenters(i.e.,userdata)withtheMaxLengthattribute.

    Firstname:

    Lastname:

    Address:

    City:

    State:

    Zip:

    Emailaddress:

    54

  • 7/29/2019 COAP 2000 Fall 1 2013 Creating Web Pages with Image Maps & Forms (Dave Hallmon) Webster University Week 5 Lesson Fall1 2013

    55/87

    Howmanyradiobuttonsdoyousee?

    55

  • 7/29/2019 COAP 2000 Fall 1 2013 Creating Web Pages with Image Maps & Forms (Dave Hallmon) Webster University Week 5 Lesson Fall1 2013

    56/87

    56

  • 7/29/2019 COAP 2000 Fall 1 2013 Creating Web Pages with Image Maps & Forms (Dave Hallmon) Webster University Week 5 Lesson Fall1 2013

    57/87

    Nowletsaddsomeadditionalinputcontrolstoourform.Wearegoingtoaddtwo

    radiobuttonsforuserstosaywhetherornottheyhaveseenamovie.Todothisweare

    goingtoaddanotherinputthathasboththenameandtypeattributes.

    Remember,the

    name

    attribute

    labels

    the

    data

    for

    processing.

    It

    could

    be

    called

    anything,butitshouldbedescriptivetothetypeofdatathattheuserisentering.

    Andthistimethetypeattributeisgoingtoberadio.

    Butwearealsogoingtoaddthevalueattribute.

    ValueAttribute isthedatathattheuserisselecting.Thisshouldbedescriptivetowhattheuserisselectingasitwillcategorizethedatawithinthenamecategorization.

    Itisimportanttonoteatthispointthataradiocontrollimitstheusertoonlyoneofthechoicesfromalistofchoices.

    57

  • 7/29/2019 COAP 2000 Fall 1 2013 Creating Web Pages with Image Maps & Forms (Dave Hallmon) Webster University Week 5 Lesson Fall1 2013

    58/87

    58

  • 7/29/2019 COAP 2000 Fall 1 2013 Creating Web Pages with Image Maps & Forms (Dave Hallmon) Webster University Week 5 Lesson Fall1 2013

    59/87

    Howmanytextfieldsdoyousee?

    59

  • 7/29/2019 COAP 2000 Fall 1 2013 Creating Web Pages with Image Maps & Forms (Dave Hallmon) Webster University Week 5 Lesson Fall1 2013

    60/87

    60

  • 7/29/2019 COAP 2000 Fall 1 2013 Creating Web Pages with Image Maps & Forms (Dave Hallmon) Webster University Week 5 Lesson Fall1 2013

    61/87

    Nowletsaddsomeadditionalinputcontrolsthatwillallowtheusertoselect

    multipleitemsfromalistofitems.Sometimestheselistsaresinglelist.Wearegoingto

    utilizethesameinputcontrolsyntaxthatwehavebeenusing.

    WhenIdesign

    forms

    Iplace

    input

    controls

    next

    to

    each

    other

    if

    they

    have

    to

    make

    achoicebetweenthetwo,andunderneatheachotheriftheycanselectmultipleoptions.

    61

  • 7/29/2019 COAP 2000 Fall 1 2013 Creating Web Pages with Image Maps & Forms (Dave Hallmon) Webster University Week 5 Lesson Fall1 2013

    62/87

    62

  • 7/29/2019 COAP 2000 Fall 1 2013 Creating Web Pages with Image Maps & Forms (Dave Hallmon) Webster University Week 5 Lesson Fall1 2013

    63/87

    Howmanytextfieldsdoyousee?

    63

  • 7/29/2019 COAP 2000 Fall 1 2013 Creating Web Pages with Image Maps & Forms (Dave Hallmon) Webster University Week 5 Lesson Fall1 2013

    64/87

    64

  • 7/29/2019 COAP 2000 Fall 1 2013 Creating Web Pages with Image Maps & Forms (Dave Hallmon) Webster University Week 5 Lesson Fall1 2013

    65/87

    65

  • 7/29/2019 COAP 2000 Fall 1 2013 Creating Web Pages with Image Maps & Forms (Dave Hallmon) Webster University Week 5 Lesson Fall1 2013

    66/87

    66

  • 7/29/2019 COAP 2000 Fall 1 2013 Creating Web Pages with Image Maps & Forms (Dave Hallmon) Webster University Week 5 Lesson Fall1 2013

    67/87

    Ifyoudonotwantthefirstchoicechosenbydefault,intermsofdesignyoucouldput

    thewordchooseasanoption

    67

  • 7/29/2019 COAP 2000 Fall 1 2013 Creating Web Pages with Image Maps & Forms (Dave Hallmon) Webster University Week 5 Lesson Fall1 2013

    68/87

    68

  • 7/29/2019 COAP 2000 Fall 1 2013 Creating Web Pages with Image Maps & Forms (Dave Hallmon) Webster University Week 5 Lesson Fall1 2013

    69/87

  • 7/29/2019 COAP 2000 Fall 1 2013 Creating Web Pages with Image Maps & Forms (Dave Hallmon) Webster University Week 5 Lesson Fall1 2013

    70/87

    Howmanytextfieldsdoyousee?

    70

  • 7/29/2019 COAP 2000 Fall 1 2013 Creating Web Pages with Image Maps & Forms (Dave Hallmon) Webster University Week 5 Lesson Fall1 2013

    71/87

    71

  • 7/29/2019 COAP 2000 Fall 1 2013 Creating Web Pages with Image Maps & Forms (Dave Hallmon) Webster University Week 5 Lesson Fall1 2013

    72/87

    72

  • 7/29/2019 COAP 2000 Fall 1 2013 Creating Web Pages with Image Maps & Forms (Dave Hallmon) Webster University Week 5 Lesson Fall1 2013

    73/87

    Nowletscreateatextareawheretheusercanaddadditionalcommentstotheir

    survey:

    73

  • 7/29/2019 COAP 2000 Fall 1 2013 Creating Web Pages with Image Maps & Forms (Dave Hallmon) Webster University Week 5 Lesson Fall1 2013

    74/87

    Wecouldprefilltheboxwithcontent:

    74

  • 7/29/2019 COAP 2000 Fall 1 2013 Creating Web Pages with Image Maps & Forms (Dave Hallmon) Webster University Week 5 Lesson Fall1 2013

    75/87

    Wecanalsodeterminehowbigthetextboxisbydeterminingthesizeinrowsand

    columns.Idontknowwhythesyntaxisntjustwidthandheight.

    Noticethatascrollbarcomesupwhenthetextexceedsthebox.Alsonoticethatsome

    browsersallow

    the

    user

    to

    determine

    box

    size.

    Ifyoudonotwanttheusertobeabletotypeuntilthecowscomehome,youcouldadd

    inthemaxlengthattribute.

    75

  • 7/29/2019 COAP 2000 Fall 1 2013 Creating Web Pages with Image Maps & Forms (Dave Hallmon) Webster University Week 5 Lesson Fall1 2013

    76/87

  • 7/29/2019 COAP 2000 Fall 1 2013 Creating Web Pages with Image Maps & Forms (Dave Hallmon) Webster University Week 5 Lesson Fall1 2013

    77/87

  • 7/29/2019 COAP 2000 Fall 1 2013 Creating Web Pages with Image Maps & Forms (Dave Hallmon) Webster University Week 5 Lesson Fall1 2013

    78/87

    78

  • 7/29/2019 COAP 2000 Fall 1 2013 Creating Web Pages with Image Maps & Forms (Dave Hallmon) Webster University Week 5 Lesson Fall1 2013

    79/87

    79

  • 7/29/2019 COAP 2000 Fall 1 2013 Creating Web Pages with Image Maps & Forms (Dave Hallmon) Webster University Week 5 Lesson Fall1 2013

    80/87

    Youwillnoticethatyouwillreceiveanerrorforthemaxlengthinthetextarea

    formelement,becausethatattributehasbeendepreciated.Ifyouareneedingtofollow

    strictstandards,thatattributeshouldnotbeusedthere.

    80

  • 7/29/2019 COAP 2000 Fall 1 2013 Creating Web Pages with Image Maps & Forms (Dave Hallmon) Webster University Week 5 Lesson Fall1 2013

    81/87

    81

  • 7/29/2019 COAP 2000 Fall 1 2013 Creating Web Pages with Image Maps & Forms (Dave Hallmon) Webster University Week 5 Lesson Fall1 2013

    82/87

  • 7/29/2019 COAP 2000 Fall 1 2013 Creating Web Pages with Image Maps & Forms (Dave Hallmon) Webster University Week 5 Lesson Fall1 2013

    83/87

  • 7/29/2019 COAP 2000 Fall 1 2013 Creating Web Pages with Image Maps & Forms (Dave Hallmon) Webster University Week 5 Lesson Fall1 2013

    84/87

  • 7/29/2019 COAP 2000 Fall 1 2013 Creating Web Pages with Image Maps & Forms (Dave Hallmon) Webster University Week 5 Lesson Fall1 2013

    85/87

  • 7/29/2019 COAP 2000 Fall 1 2013 Creating Web Pages with Image Maps & Forms (Dave Hallmon) Webster University Week 5 Lesson Fall1 2013

    86/87

    86

  • 7/29/2019 COAP 2000 Fall 1 2013 Creating Web Pages with Image Maps & Forms (Dave Hallmon) Webster University Week 5 Lesson Fall1 2013

    87/87