免费预览已结束,剩余17页可下载查看
下载本文档
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
HTTP HyperTextTransferProtocol HTMLforms htmlformsareusefullforgettingdifferentkindsofuserinputandsendingthisinputtothewebserverhtmlformsareintroducedbythetagsyntaxof textcontent inputelements inputelementsaredescribedusingthetag attributes action URL specifieswheretheform datawillbesentwhentheformissubmittedaccept MIMEtype specifiesthetypesoffilesthatcanbesubmittedthroughafileuploadaccept charset charset specifiesthecharacter settheserercanhandleforform dataenctype application x www form urlencoded multipart form data text plain specifieshowformdatashouldbeencodedbeforesendingittothewebservermethod get form dataissenttothewebserverintheheaderoftheHTTPrequest post form dataissenttothewebserverinthebodyoftheHTTPrequest specifieshowtosendform dataname string thenameoftheform Typesofuserinput Thetag isusefulforselectinguserinformationreceivesinputinvarioustypeshasnoendtaginHtmlattributes accept MIME type fortype file onlyspecifiestypesoffilesthatcanbesubmittedthroughafileuploadalt text fortype image onlyspecifiesanalternatetextforanimageinputchecked checked fortype checkbox radio specifiesiftheinputshouldbepreselectedwhenthepageloadsdisabled disabled specifiestheinputshouldbedisabledwhenthepageloadsmaxlength number fortype text password specifiesthemaximumlengthincharactersoftheinputfieldname text specifiesthenameofinputelementreadonly readonly fortype text password specifiestheinputfieldshouldberead onlysize number thewidthoftheinputfieldsrc URL theURLofanimagetodisplayasasubmitbuttontype button checkbox file hidden image password radio reset submit textvalue text valueoftheinputelement Othertagsusefulins definesamulti linetextinputcontrolcanholdanunlimitedno ofcharacterstextisrenderedinfixed widthfont usuallycourier attributes cols number visiblenumberofcolumnsinatextarea requiredattribute rows number visiblenumbersofrowsinatextarea requiredattribute disabled disabled textareaisdisabledreadonly readonly textareaisreadonlyname text nameofthetextareaelementEx Thisisatextarea and doesnotrenderanything definesalabelforaninputelement ittogglesthecontroliftheuserclicksthetextwithinthelabeldefinesapushbutton itcancontaininsidetextorimages differencefrom attributesfor disabled disabled buttonisdisabledname text nameofthebuttontype button reset submit typeofthebuttonvalue text valueofthebuttonEx Clickme and definesacaptionforaelementgroupstogetherformelements itdrawsaboxaroundthemEx SomecaptiongroupstogetherrelatedoptionsinaselectlistEx AppleGrapesFootballBasketball and andareusefulforcreatingadrop downlistEx FordFerrariBMWattributesofselect disabled disabled listisdisabledmultiple multiple multipleselectionsarepossiblename text nameoftheelementsize number no ofvisibleoptionsinthelistattributesofoption disabled disabled thisoptionisdisabledselected selected thisoptionisselectedbydefaultvalue text valuethatwillbesenttotheserverwhentheformissubmitted SetsofcharactersinHTML Mostbrowserssupport ASCIIcharacterset see see URL UniformResourceLocator anURLidentifiesaresourceintheWWWURLsareasubsetofURIs UniformResourceIdentifiers URL URIthatprovidesthelocationforaresourcegeneralformofaURL resource type domain port filepathname querystring anchorresource type theschemename protocol whichdefinesthenamespace syntaxandremainingpartofURLdomain registereddomainnameorIPaddressoflocation case insensitive port portnumber optional defaultforschemeisused filepathname pathtotheresource fileontheserver usuallycase sensitive querystring datasubmittedtotheserverthroughformsanchor aspecificlocationinsidethatdocument URLexamples ftp URI UniformResourceIdentifier Webcommunication Internet Get HTTPReply Client browser Firefox onlocalcomputer Webserver HTTP HyperTextTransferProtocol togetherwithHTMLformsthebaseofWWWisstandardizedbyIETF rfc2616 isarequest responseprotocolitisstateless doesnotmaintainastateofasession andasynchronous anhtmldocumentisloadedasynchronousbythebrowser assoonaspartsofitareavailable latestversionisHTTP 1 1runsontopofTCPonthestandardizedport80 HTTPRequest hastheform Request MethodSPRequest URLSPHTTP Version generic header request header entity header messagebody Request Methodis GET requestwhateverinformationisidentifiedbytheRequest URLPOST requestthatserveracceptstheentityenclosedintherequestOPTIONS requestforinformationaboutcommunicationoptionsPUT requestthattheenclosedentitybestoredundertheRequest URLDELETE requestthattheserverdeletetheresourceidentifiedbyRequest URLTRACE invokearemote application layerloopbackoftherequestmessageCONNECT usedbyproxiesinSSLconnectionsHEAD identicaltoGET butservermustnotreturnamessagebodyinresponse HTTPRequest 2 Request headercanhavethefollowingfields selection Accept MIMEtypesofresourcesacceptedbybrowserAccept Charset charsetacceptedbybrowserAccept Encoding encodingacceptedbybrowserAccept Language languageacceptedbybrowserAuthorization user agentwishestoauthenticateitselfwithaserverHost thehostRequest URLpointstoReferer theURLofdocumentreferingthisURLUser Agent Firefox Safari IE HTTPResponse hastheform Http VersionSPStatus CodeSPReason Phrase generic header response header entity header messagebody Response headerhasthefollowingfields selection Accept Ranges serverindicatesitsacceptanceofrangerequestsforresourceAge sender sestimateoftheamountoftimesincetheresponsewasgeneratedbyserverLocation redirecttheclienttoalocationotherthanRequest URLforcompletionoftherequestRetry After indicatetoclienthowlongtheserviceisexpectedtobeunavailableServer informationaboutsoftwareusedbytheservertohandletherequest HTTPRequestexample GetHTTP 1 1Host User Agent Mozilla 5 0 Windows U WindowsNT5 1 en US rv 1 9 1 3 Gecko 20090824Firefox 3 5 3 NETCLR3 5 30729 Accept text html application xhtml xml application xml q 0 9 q 0 8Accept Langu
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 西式烹饪厨师酱料调配方案指导书
- 汽车销售与服务行业销售顾问客户评价及业绩考核表
- 食品卫生控制绩效评估表
- 事业单位工程岗面试历年真题2026易错题
- 物流仓储货物存储调度执行考核表
- 新能源电动车电池管理系统安全规范指南
- 事业单位综合岗面试2026强化训练结构化问答试卷及答案
- 事业单位审计岗2026面试结构化问答题库及答案
- 2026事业单位综合岗面试高频考题试卷及解析
- 高中政治教资面试试讲历年真题题库
- 盘扣式模板支撑体系工程施工方案
- 高中美术选修课《异域的憧憬》跨学科融合教学设计
- 市政环形天桥钢箱梁分段吊装施工方案
- 中国肺孢子菌肺炎诊治专家共识(2026版)
- 订单延期交货处罚管理制度(3篇)
- GB/T 22417-2025工业车辆货叉叉套和伸缩式货叉技术性能和强度要求
- 锤击安全施工方案(3篇)
- 建筑拆除工程监理实施细则
- 湖北省仙桃、天门、潜江市2025-2026学年高一上化学期中联考试题含解析
- 西门子S7-1200 PLC应用技术 课件 项目七 步进电机与伺服电机控制程序设计
- DG-TJ08-2478-2025 装配式混凝土预制构件设计一生产数据交互标准
评论
0/150
提交评论